Skip to content

Commit ee7518c

Browse files
committed
Build libpico in CI
1 parent 64156c4 commit ee7518c

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/build-libpico.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Run whenever it is manually triggered, a pull request or a push is done that modifes the libpico configuration
2+
3+
name: libpico Builder
4+
5+
on:
6+
pull_request:
7+
paths:
8+
- tools/libpico/**
9+
workflow_dispatch:
10+
push:
11+
paths:
12+
- tools/libpico/**
13+
jobs:
14+
build-libpico:
15+
name: Build libpico precompiled libraries
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
submodules: false
21+
- name: Get submodules for pico-sdk
22+
run: cd pico-sdk && git submodule update --init --recursive
23+
- name: Install dependencies
24+
run: |
25+
sudo apt update
26+
sudo apt install cmake make build-essential wget gcc-arm-none-eabi
27+
# RISC-V toolchain
28+
wget -O "$GITHUB_WORKSPACE/riscv32.tar.gz" "https://github.com/earlephilhower/pico-quick-toolchain/releases/download/4.0.1/x86_64-linux-gnu.riscv32-unknown-elf-8ec9d6f.240929.tar.gz"
29+
tar xf "$GITHUB_WORKSPACE/riscv32.tar.gz"
30+
echo "$GITHUB_WORKSPACE/riscv32-unknown-elf/bin" >> "$GITHUB_PATH"
31+
# ARM toolchain taken from Ubuntu repository
32+
- name: Build libpico
33+
run: |
34+
cd tools/libpico
35+
./make-libpico.sh
36+
- uses: actions/upload-artifact@v4
37+
with:
38+
name: libpico
39+
path: |
40+
tools/libpico/build-rp2040/*.a
41+
tools/libpico/build-rp2350/*.a
42+
tools/libpico/build-rp2350-riscv/*.a

0 commit comments

Comments
 (0)