Skip to content

Commit 0247f00

Browse files
committed
CI: use NFS cache for Yocto on self-hosted runner
Speed up the pipeline by reusing the Yocto download and sstate cache directories on the self-hosted runner via NFS mounts. Mostly for `devtool modify busybox` which needs to build quilt-native and a few other recipes.
1 parent 85d47c4 commit 0247f00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ jobs:
9999

100100
- name: Test Project
101101
run: npm run test
102+
env:
103+
# NFS Yocto cache directories on the self-hosted runner
104+
DL_DIR: /var/cache/yocto/yocto-dldir
105+
SSTATE_DIR: /var/cache/yocto/yocto-sstate
106+
BB_ENV_PASSTHROUGH_ADDITIONS: "DL_DIR SSTATE_DIR"
102107

103108
- name: Build the VSIX
104109
run: npm run package

0 commit comments

Comments
 (0)