Skip to content

Commit 34d0bb5

Browse files
authored
Update build-pico-sdk.yml (#85)
Avoid using docker instead just build directly in an ubuntu 24.04 VM.
1 parent 8815c9a commit 34d0bb5

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

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

Lines changed: 18 additions & 9 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,13 +20,14 @@ 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
2727
uses: actions/checkout@v4
2828

2929
- name: Install apt dependencies
30-
run: apt-get -qq update && apt-get -qq -y install curl ninja-build python3
30+
run: sudo apt-get -qq update && sudo apt-get -qq -y install curl ninja-build python3
3131

3232
- name: Install CMake 3.30.2
3333
run: |
@@ -38,19 +38,28 @@ 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+
which swiftc
54+
swiftc --version
55+
4156
- name: Clone Pico SDK
4257
run: |
4358
git clone https://github.com/raspberrypi/pico-sdk.git
4459
cd pico-sdk
4560
git submodule update --init --recursive
4661
cd ..
4762
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-
5463
- name: Set Pico environment variables
5564
run: |
5665
ARCH=`uname -m`

0 commit comments

Comments
 (0)