File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,11 +27,13 @@ jobs:
2727 - name : Install just
2828 uses : extractions/setup-just@v2
2929
30- - name : Install libudev
31- run : sudo apt-get install -y libudev-dev
32-
33- - name : Install elf2uf2-rs
34- run : cargo install elf2uf2-rs
30+ - name : Install picotool
31+ run : |
32+ gh release download --repo raspberrypi/pico-sdk-tools --pattern 'picotool-*-x86_64-lin.tar.gz' --output picotool.tar.gz
33+ tar -xzf picotool.tar.gz
34+ sudo install -m 755 $(find . -maxdepth 2 -name 'picotool' -type f) /usr/local/bin/picotool
35+ env :
36+ GH_TOKEN : ${{ github.token }}
3537
3638 - name : Check version matches tag
3739 run : |
Original file line number Diff line number Diff line change 2626 set -euo pipefail
2727 VERSION=$(grep ' ^version' Cargo.toml | head -1 | sed ' s/version = "\(.*\)"/\1/' )
2828 cargo build --release --features bake-cyw43 -firmware
29- elf2uf2-rs target/ thumbv8m.main-none-eabihf/ release/ mote-firmware " mote-firmware-v${VERSION//./_}.uf2"
30-
29+ picotool uf2 convert target/ thumbv8m.main-none-eabihf/ release/ mote-firmware -t elf " mote-firmware-v${VERSION//./_}.uf2" --family rp2350 -arm-s
3130ci : build format-check lint
You can’t perform that action at this time.
0 commit comments