Skip to content

Commit c8f3b58

Browse files
Firmware tagged releases patch - again (#24)
1 parent 430e331 commit c8f3b58

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/release-firmware.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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: |

mote-firmware/justfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,5 @@ uf2:
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
3130
ci: build format-check lint

0 commit comments

Comments
 (0)