Skip to content

Commit f9b5928

Browse files
committed
Add caching to GitHub workflows
1 parent a4b2a9c commit f9b5928

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/test-build-mcux-sdk-manifests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,17 @@ jobs:
8585
run: |
8686
sudo apt-get install -y gcc-arm-none-eabi
8787
88+
- name: Cache MCUXpresso SDK
89+
id: cache-mcuxpresso
90+
uses: actions/cache@v4
91+
with:
92+
path: |
93+
mcuxpresso-sdk
94+
venv
95+
key: mcuxpresso-sdk-${{inputs.board-name}}-${{hashFiles('.github/workflows/test-build-mcux-sdk-manifests.yml')}}
96+
8897
- name: Setup MCUXpresso SDK
98+
if: steps.cache-mcuxpresso.outputs.cache-hit != 'true'
8999
run: |
90100
python -m venv venv
91101
source venv/bin/activate

0 commit comments

Comments
 (0)