File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 49
49
run : cargo make --cwd inputmodule-control build-release
50
50
51
51
- name : Check if Linux tool can start
52
- run : cargo run --release --target x86_64-unknown-linux-gnu -p inputmodule-control -- --help
52
+ run : cargo make --cwd inputmodule-control run -- --help | grep 'RAW Hid and VIA commandline'
53
53
54
54
- name : Upload Linux tool
55
55
uses : actions/upload-artifact@v3
72
72
run : cargo make --cwd inputmodule-control build-release
73
73
74
74
- name : Check if Windows tool can start
75
- run : cargo run --release --target x86_64-pc-windows-msvc -p inputmodule-control -- --help
75
+ run : cargo make --cwd inputmodule-control run -- --help | grep 'RAW Hid and VIA commandline'
76
76
77
77
- name : Upload Windows App
78
78
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change @@ -157,8 +157,11 @@ Currently have to specify the build target because it's not possible to specify
157
157
Tracking issue: https://github.com/rust-lang/cargo/issues/9406
158
158
159
159
```
160
+ # Build it
160
161
> cargo make --cwd inputmodule-control
161
- > cargo run --target x86_64-unknown-linux-gnu -p inputmodule-control
162
+
163
+ # Build and run it, showing the tool version
164
+ > cargo make --cwd inputmodule-control run -- --version
162
165
```
163
166
164
167
### Check the firmware version of the device
Original file line number Diff line number Diff line change @@ -4,3 +4,11 @@ extend = "../Makefile.toml"
4
4
[env ]
5
5
TARGET_TRIPLE = " ${CARGO_MAKE_RUST_TARGET_TRIPLE}"
6
6
7
+ [tasks .run ]
8
+ command = " cargo"
9
+ args = [
10
+ " run" ,
11
+ " --target" ,
12
+ " ${CARGO_MAKE_RUST_TARGET_TRIPLE}" ,
13
+ " ${@}" ,
14
+ ]
You can’t perform that action at this time.
0 commit comments