File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,3 +114,36 @@ jobs:
114114 run : |
115115 cmake -S pico-examples -B build-examples -G "Ninja" -D PICO_SDK_PATH="${{ github.workspace }}/pico-sdk" -D PICO_BOARD=pico2_w ${{ matrix.compiler == 'clang' && '-D PICO_COMPILER=pico_arm_clang' || '' }}
116116 cmake --build build-examples
117+
118+ test-older-sdk :
119+ # Due to 2.1.0 and 2.1.1 pointing at the develop tag (https://github.com/raspberrypi/pico-sdk/pull/2401)
120+ # This test can be removed once 2.1.0 and 2.1.1 are no longer supported (use 2.1.x-correct-picotool instead)
121+ # Prevent running twice for PRs from same repo
122+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
123+ strategy :
124+ fail-fast : false
125+ matrix :
126+ sdk : ["2.1.1", "2.1.0"]
127+ name : Test Build with older SDK
128+ runs-on : ubuntu-latest
129+ steps :
130+ - name : Checkout
131+ uses : actions/checkout@v4
132+ - name : Install dependencies
133+ # No libusb, as that is how the SDK auto-builds picotool
134+ run : sudo apt install cmake ninja-build python3 build-essential
135+ - name : Checkout Pico SDK
136+ uses : actions/checkout@v4
137+ with :
138+ repository : raspberrypi/pico-sdk
139+ ref : ${{ matrix.sdk }}
140+ path : pico-sdk
141+ submodules : ' recursive'
142+ - name : Build and Install
143+ run : |
144+ cmake -S . -B build -G "Ninja" -D PICO_SDK_PATH="${{ github.workspace }}/pico-sdk" -D PICOTOOL_NO_LIBUSB=1
145+ cmake --build build
146+ sudo cmake --install build
147+ - name : Test
148+ run : |
149+ picotool version ${{ matrix.sdk }}
You can’t perform that action at this time.
0 commit comments