Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5ee0968

Browse files
committedMar 27, 2024·
Fix bootstrap caching for Darwin framework jobs.
In project-chip#32583 the step to put zap-cli back got lost, so when bootstrap caching caches our state it's caching the "there is no zap-cli" state. Then restoring from cache causes `dirname $(which zap-cli)` to fail, because there is no zap-cli in the PATH.
1 parent 60b6beb commit 5ee0968

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎.github/workflows/darwin.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ jobs:
6464
- name: Build
6565
working-directory: src/darwin/Framework
6666
run: xcodebuild -target "Matter" ${{ matrix.options.arguments }}
67+
# Now restore zap-cli, so that bootstrap caching does not cache the state when it's been renamed.
68+
- name: Make zap-cli work again
69+
run: scripts/run_in_build_env.sh 'D=$(dirname $(which zap-cli.moved)) && mv $D/zap-cli.moved $D/zap-cli'
6770

6871
tests:
6972
name: Run framework tests

0 commit comments

Comments
 (0)
Please sign in to comment.