Skip to content

Commit 9157090

Browse files
committed
try to build ci with sdk v1.5.1 and 2.0.0
1 parent 75e62ad commit 9157090

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,40 @@ on:
77
types:
88
- created
99

10+
env:
11+
PICO_SDK_PATH: ${{ github.workspace }}/pico-sdk
12+
1013
jobs:
1114
build:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
sdk_version:
19+
- '2.0.0'
20+
- '1.5.1'
1221
runs-on: ubuntu-latest
1322
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v4
16-
1723
- name: Install ARM GCC
1824
uses: carlosperate/arm-none-eabi-gcc-action@v1
1925
with:
2026
release: '12.3.Rel1'
2127

28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
2231
- name: Checkout pico-sdk
32+
uses: actions/checkout@v4
33+
with:
34+
repository: raspberrypi/pico-sdk
35+
ref: ${{ matrix.sdk_version }}
36+
path: pico-sdk
37+
38+
- name: Checkout TinyUSB
2339
run: |
24-
git clone --depth 1 -b develop https://github.com/raspberrypi/pico-sdk ~/pico-sdk
25-
echo >> $GITHUB_ENV PICO_SDK_PATH=~/pico-sdk
2640
# checkout tinyusb in pico-sdk and switch to master branch
27-
git -C ~/pico-sdk submodule update --init
28-
git -C ~/pico-sdk/lib/tinyusb fetch
29-
git -C ~/pico-sdk/lib/tinyusb checkout master
41+
git -C $PICO_SDK_PATH submodule update --init
42+
git -C $PICO_SDK_PATH/lib/tinyusb fetch
43+
git -C $PICO_SDK_PATH/lib/tinyusb checkout master
3044
3145
- name: Build
3246
run: |
@@ -36,7 +50,7 @@ jobs:
3650
cmake ..
3751
make
3852
39-
- uses: actions/upload-artifact@v3
53+
- uses: actions/upload-artifact@v4
4054
with:
4155
name: example_binaries
4256
path: |

0 commit comments

Comments
 (0)