Skip to content

Commit

Permalink
Caching hell
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Oct 25, 2024
1 parent 09efacc commit fb6df84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/actions/pico/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ runs:
gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
shell: bash

- name: Cache SDK
id: cache-sdk
- name: Cache Pico SDK
id: cache-pico-sdk
uses: actions/cache@v4
with:
path: /opt/pico-sdk
key: pico-sdk-${{ runner.os }}

- name: Install pico-sdk
if: steps.pico-sdk.outputs.cache-hit != 'true'
if: steps.cache-pico-sdk.outputs.cache-hit != 'true'
run: |
git clone https://github.com/raspberrypi/pico-sdk /opt/pico-sdk
echo "PICO_SDK_PATH=/opt/pico-sdk" >> $GITHUB_ENV
Expand Down
10 changes: 5 additions & 5 deletions .github/actions/zephyr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ runs:
shell: bash

- name: Cache SDK
id: cache-sdk
id: cache-zephyr-sdk
uses: actions/cache@v4
with:
path: /opt/zephyr-sdk-${{env.SDK_VERSION}}_linux-x86_64
path: /opt/zephyr-sdk-${{env.SDK_VERSION}}
key: zephyr-sdk-${{env.SDK_VERSION}}-${{ runner.os }}

- name: Install Zephyr SDK
if: steps.cache-sdk.outputs.cache-hit != 'true'
if: steps.cache-zephyr-sdk.outputs.cache-hit != 'true'
run : |
wget -q "https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${{env.SDK_VERSION}}/zephyr-sdk-${{env.SDK_VERSION}}_linux-x86_64.tar.xz"
wget -O - "https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${{env.SDK_VERSION}}/sha256.sum" | shasum --check --ignore-missing
Expand All @@ -37,14 +37,14 @@ runs:
shell: bash

- name: Cache Zephyr RTOS
id: cache-rtos
id: cache-zephyr-rtos
uses: actions/cache@v4
with:
path: $HOME/lf-west-template
key: lf-west-template-${{ runner.os }}

- name: Download and install Zephyr RTOS with the lf-west-template
if: steps.cache-rtos.outputs.cache-hit != 'true'
if: steps.cache-zephyr-rtos.outputs.cache-hit != 'true'
run: |
cd $HOME
git clone https://github.com/lf-lang/lf-west-template && cd lf-west-template
Expand Down

0 comments on commit fb6df84

Please sign in to comment.