From 980b48a395fab0da0f277d0380647a979cb89702 Mon Sep 17 00:00:00 2001 From: Rauhul Varma Date: Mon, 3 Nov 2025 09:24:02 -0800 Subject: [PATCH] Pin the RPI Pico SDK versions 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. --- .github/workflows/build-rpi-pico-sdk.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-rpi-pico-sdk.yml b/.github/workflows/build-rpi-pico-sdk.yml index 6e03868..0e25ab5 100644 --- a/.github/workflows/build-rpi-pico-sdk.yml +++ b/.github/workflows/build-rpi-pico-sdk.yml @@ -15,6 +15,10 @@ jobs: name: Build runs-on: ubuntu-24.04 + env: + PICO_SDK_VERSION: "2.2.0" + PICO_EXTRAS_VERSION: "sdk-2.2.0" + strategy: fail-fast: false matrix: @@ -53,17 +57,13 @@ jobs: - name: Clone Pico SDK run: | - git clone https://github.com/raspberrypi/pico-sdk.git - cd pico-sdk - git submodule update --init --recursive - cd .. + git clone --depth 1 --branch ${{ env.PICO_SDK_VERSION }} https://github.com/raspberrypi/pico-sdk.git + git -C pico-sdk submodule update --init --recursive - name: Clone Pico Extras run: | - git clone https://github.com/raspberrypi/pico-extras.git - cd pico-extras - git submodule update --init --recursive - cd .. + git clone --depth 1 --branch ${{ env.PICO_EXTRAS_VERSION }} https://github.com/raspberrypi/pico-extras.git + git -C pico-extras submodule update --init --recursive - name: Set Pico environment variables run: |