1
- name : Firmware CI Checks
1
+ name : Firmware Checks
2
2
3
3
on :
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/**'
5
17
6
18
env :
7
19
CARGO_TERM_COLOR : always
@@ -17,22 +29,22 @@ jobs:
17
29
- name : Setup Rust toolchain
18
30
run : rustup show
19
31
32
+ - run : cargo install cargo-make
33
+
20
34
- 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
27
40
28
41
- name : Convert to UF2 format
29
42
run : |
30
43
sudo apt-get update
31
44
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
36
48
37
49
- name : Upload UF2 files
38
50
uses : actions/upload-artifact@v3
47
59
run : |
48
60
sudo apt-get update
49
61
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
53
65
54
66
- name : Upload bin files
55
67
uses : actions/upload-artifact@v3
65
77
runs-on : ubuntu-latest
66
78
steps :
67
79
- uses : actions/checkout@v3
68
- with :
69
- submodules : true
70
80
71
81
- name : Setup Rust toolchain
72
82
run : rustup show
93
103
runs-on : ubuntu-latest
94
104
steps :
95
105
- uses : actions/checkout@v3
96
- with :
97
- submodules : true
98
106
99
107
- name : Setup Rust toolchain
100
108
run : rustup show
0 commit comments