Skip to content

Commit fa4ad4b

Browse files
committed
Also cache the Zephyr SDK
1 parent fdce8f5 commit fa4ad4b

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/compile.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@ jobs:
148148
149149
source .venv/bin/activate
150150
west zephyr-export
151-
152-
cd zephyr
153-
west sdk install
154151
155152
- name: Install Zephyr
156153
if: steps.cache-zephyr.outputs.cache-hit != 'true'
@@ -169,8 +166,19 @@ jobs:
169166
170167
west packages pip --install
171168
172-
cd zephyr
173-
west sdk install
169+
- name: Cache Zephyr SDK
170+
id: cache-zephyr-sdk
171+
uses: actions/cache@v5
172+
with:
173+
path: zephyr-sdk
174+
key: ${{ runner.os }}-zephyr-sdk
175+
176+
- name: Install Zephyr SDK
177+
if: steps.cache-zephyr-sdk.outputs.cache-hit != 'true'
178+
working-directory: ${{ github.workspace }}
179+
run: |
180+
source zephyrproject/.venv/bin/activate
181+
west sdk install --install-dir zephyr-sdk
174182
175183
- name: Checkout repository
176184
uses: actions/checkout@v6

0 commit comments

Comments
 (0)