1- name : Firmware CI Checks
1+ name : Firmware Checks
22
33on :
4- push
4+ push :
5+ branches :
6+ - master
7+ - dev-*
8+ paths-ignore :
9+ - ' *.py'
10+ - ' inputmodule-control/**'
11+ pull_request :
12+ branches :
13+ - ' *'
14+ paths-ignore :
15+ - ' *.py'
16+ - ' inputmodule-control/**'
517
618env :
719 CARGO_TERM_COLOR : always
@@ -17,22 +29,22 @@ jobs:
1729 - name : Setup Rust toolchain
1830 run : rustup show
1931
32+ - run : cargo install cargo-make
33+
2034 - run : cargo install flip-link
21- - run : cargo build -p ledmatrix
22- - run : cargo build -p b1display
23- - run : cargo build -p c1minimal
24- - run : cargo build -p ledmatrix --release
25- - run : cargo build -p b1display --release
26- - run : cargo build -p c1minimal --release
35+ - run : cargo make --cwd b1display
36+ - run : cargo make --cwd c1minimal
37+ - run : cargo make --cwd ledmatrix build-release
38+ - run : cargo make --cwd b1display build-release
39+ - run : cargo make --cwd c1minimal build-release
2740
2841 - name : Convert to UF2 format
2942 run : |
3043 sudo apt-get update
3144 sudo apt-get install -y libudev-dev
32- cargo install elf2uf2-rs
33- elf2uf2-rs target/thumbv6m-none-eabi/release/b1display b1display.uf2
34- elf2uf2-rs target/thumbv6m-none-eabi/release/c1minimal c1minimal.uf2
35- elf2uf2-rs target/thumbv6m-none-eabi/release/ledmatrix ledmatrix.uf2
45+ cargo make --cwd b1display uf2
46+ cargo make --cwd c1minimal uf2
47+ cargo make --cwd ledmatrix uf2
3648
3749 - name : Upload UF2 files
3850 uses : actions/upload-artifact@v3
4759 run : |
4860 sudo apt-get update
4961 sudo apt-get install -y llvm
50- llvm-objcopy -O binary target/thumbv6m-none-eabi/release/b1display b1display. bin
51- llvm-objcopy -O binary target/thumbv6m-none-eabi/release/c1minimal c1minimal. bin
52- llvm-objcopy -O binary target/thumbv6m-none-eabi/release/ledmatrix ledmatrix. bin
62+ cargo make --cwd b1display bin
63+ cargo make --cwd c1minimal bin
64+ cargo make --cwd ledmatrix bin
5365
5466 - name : Upload bin files
5567 uses : actions/upload-artifact@v3
6577 runs-on : ubuntu-latest
6678 steps :
6779 - uses : actions/checkout@v3
68- with :
69- submodules : true
7080
7181 - name : Setup Rust toolchain
7282 run : rustup show
93103 runs-on : ubuntu-latest
94104 steps :
95105 - uses : actions/checkout@v3
96- with :
97- submodules : true
98106
99107 - name : Setup Rust toolchain
100108 run : rustup show
0 commit comments