Skip to content

Commit 3ae6261

Browse files
authored
Pin the RPI Pico SDK versions (#178)
Instead of using `main` of the pico-sdk and pico-extras this changes prs our workflows to use 2.2.0 aligned releases. This should avoid accidentally breaking ci when the upstream makes an incompatible change.
1 parent a1bd338 commit 3ae6261

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/build-rpi-pico-sdk.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
name: Build
1616
runs-on: ubuntu-24.04
1717

18+
env:
19+
PICO_SDK_VERSION: "2.2.0"
20+
PICO_EXTRAS_VERSION: "sdk-2.2.0"
21+
1822
strategy:
1923
fail-fast: false
2024
matrix:
@@ -53,17 +57,13 @@ jobs:
5357

5458
- name: Clone Pico SDK
5559
run: |
56-
git clone https://github.com/raspberrypi/pico-sdk.git
57-
cd pico-sdk
58-
git submodule update --init --recursive
59-
cd ..
60+
git clone --depth 1 --branch ${{ env.PICO_SDK_VERSION }} https://github.com/raspberrypi/pico-sdk.git
61+
git -C pico-sdk submodule update --init --recursive
6062
6163
- name: Clone Pico Extras
6264
run: |
63-
git clone https://github.com/raspberrypi/pico-extras.git
64-
cd pico-extras
65-
git submodule update --init --recursive
66-
cd ..
65+
git clone --depth 1 --branch ${{ env.PICO_EXTRAS_VERSION }} https://github.com/raspberrypi/pico-extras.git
66+
git -C pico-extras submodule update --init --recursive
6767
6868
- name: Set Pico environment variables
6969
run: |

0 commit comments

Comments
 (0)