Skip to content

Commit

Permalink
Add caches to pico
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Oct 25, 2024
1 parent 12ea953 commit 09efacc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/actions/pico/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@ runs:
sudo apt-get install -y --no-install-recommends git cmake tar build-essential \
gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
shell: bash

- name: Cache SDK
id: cache-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'
run: |
git clone https://github.com/raspberrypi/pico-sdk /opt/pico-sdk
echo "PICO_SDK_PATH=/opt/pico-sdk" >> $GITHUB_ENV
Expand Down

0 comments on commit 09efacc

Please sign in to comment.