File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments