File tree Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,14 @@ jobs:
17
17
- name : Setup Rust toolchain
18
18
run : rustup show
19
19
20
+ - run : cargo install cargo-make
21
+
20
22
- 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
23
+ - run : cargo make --cwd b1display
24
+ - run : cargo make --cwd c1minimal
25
+ - run : cargo make --cwd ledmatrix build-release
26
+ - run : cargo make --cwd b1display build-release
27
+ - run : cargo make --cwd c1minimal build-release
27
28
28
29
- name : Convert to UF2 format
29
30
run : |
Original file line number Diff line number Diff line change 43
43
- name : Setup Rust toolchain
44
44
run : rustup show
45
45
46
+ - run : cargo install cargo-make
47
+
46
48
- name : Build Linux tool
47
- run : cargo build --release --target x86_64-unknown-linux-gnu -p inputmodule-control
49
+ run : cargo make --cwd inputmodule-control build-release
48
50
49
51
- name : Check if Linux tool can start
50
52
run : cargo run --release --target x86_64-unknown-linux-gnu -p inputmodule-control -- --help
64
66
- name : Setup Rust toolchain
65
67
run : rustup show
66
68
69
+ - run : cargo install cargo-make
70
+
67
71
- name : Build Windows tool
68
- run : cargo build --release --target x86_64-pc-windows-msvc -p inputmodule-control
72
+ run : cargo make --profile windows --cwd inputmodule-control build-release
69
73
70
74
- name : Check if Windows tool can start
71
75
run : cargo run --release --target x86_64-pc-windows-msvc -p inputmodule-control -- --help
Original file line number Diff line number Diff line change @@ -129,9 +129,9 @@ cargo install elf2uf2-rs --locked
129
129
Build:
130
130
131
131
``` sh
132
- cargo build -p ledmatrix
133
- cargo build -p b1display
134
- cargo build -p c1minimal
132
+ cargo make --cwd ledmatrix
133
+ cargo make --cwd b1display
134
+ cargo make --cwd c1minimal
135
135
```
136
136
137
137
Generate the UF2 update file:
@@ -150,7 +150,7 @@ Currently have to specify the build target because it's not possible to specify
150
150
Tracking issue: https://github.com/rust-lang/cargo/issues/9406
151
151
152
152
```
153
- > cargo build --target x86_64-unknown-linux-gnu -p inputmodule-control
153
+ > cargo make --cwd inputmodule-control
154
154
> cargo run --target x86_64-unknown-linux-gnu -p inputmodule-control
155
155
```
156
156
You can’t perform that action at this time.
0 commit comments