Skip to content

Commit 0413d93

Browse files
authored
Update build-pico-sdk.yml
1 parent 7515fbc commit 0413d93

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

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

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ on:
1111

1212
jobs:
1313
build-pico-sdk:
14-
runs-on: ubuntu-22.04
15-
container: swiftlang/swift:nightly-main-jammy
14+
runs-on: ubuntu-24.04
1615
strategy:
1716
fail-fast: false
1817
matrix:
@@ -21,6 +20,7 @@ jobs:
2120
board: pico
2221
- name: pico-w-blink-sdk
2322
board: pico_w
23+
swift: [swift-DEVELOPMENT-SNAPSHOT-2024-12-04-a]
2424

2525
steps:
2626
- name: Checkout repo
@@ -38,19 +38,27 @@ jobs:
3838
echo "PATH=$PATH" >> $GITHUB_ENV
3939
cmake --version
4040
41+
- name: Install GNU ARM toolchain
42+
run: |
43+
ARCH=`uname -m`
44+
curl -sL https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-$ARCH-arm-none-eabi.tar.xz -O
45+
tar xf arm-gnu-toolchain-13.3.rel1-$ARCH-arm-none-eabi.tar.xz
46+
47+
- name: Install ${{ matrix.swift }}
48+
run: |
49+
wget -q https://download.swift.org/development/ubuntu2404/${{ matrix.swift }}/${{ matrix.swift }}-ubuntu24.04.tar.gz
50+
tar xzf ${{ matrix.swift }}-ubuntu24.04.tar.gz
51+
export PATH="$PATH:`pwd`/${{ matrix.swift }}-ubuntu24.04/usr/bin/"
52+
echo "PATH=$PATH" >> $GITHUB_ENV
53+
swiftc --version
54+
4155
- name: Clone Pico SDK
4256
run: |
4357
git clone https://github.com/raspberrypi/pico-sdk.git
4458
cd pico-sdk
4559
git submodule update --init --recursive
4660
cd ..
4761
48-
- name: Download GNU ARM toolchain
49-
run: |
50-
ARCH=`uname -m`
51-
curl -sL https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-$ARCH-arm-none-eabi.tar.xz -O
52-
tar xf arm-gnu-toolchain-13.3.rel1-$ARCH-arm-none-eabi.tar.xz
53-
5462
- name: Set Pico environment variables
5563
run: |
5664
ARCH=`uname -m`

0 commit comments

Comments
 (0)