File tree Expand file tree Collapse file tree 2 files changed +10
-33
lines changed Expand file tree Collapse file tree 2 files changed +10
-33
lines changed Original file line number Diff line number Diff line change @@ -21,29 +21,15 @@ jobs:
21
21
TARGET : x86_64-unknown-linux-gnu
22
22
23
23
steps :
24
- - uses : actions/checkout@v2
25
-
26
- - uses : actions-rs/toolchain@v1
24
+ - uses : actions/checkout@v3
25
+ - uses : dtolnay/rust-toolchain@master
27
26
with :
28
- profile : minimal
29
27
toolchain : ${{ matrix.rust }}
30
- target : ${{ matrix.TARGET }}
31
- override : true
28
+ targets : ${{ matrix.TARGET }}
32
29
33
30
- name : Install libusb library
34
31
run : sudo apt-get install -y libusb-1.0.0-dev
35
32
36
- - uses : actions-rs/cargo@v1
37
- with :
38
- command : check
39
- args : --all-targets
40
-
41
- - uses : actions-rs/cargo@v1
42
- with :
43
- command : check
44
- args : --features control-buffer-256
45
-
46
- - uses : actions-rs/cargo@v1
47
- with :
48
- command : check
49
- args : --features defmt
33
+ - run : cargo check --all-targets
34
+ - run : cargo check --features control-buffer-256
35
+ - run : cargo check --features defmt
Original file line number Diff line number Diff line change 10
10
name : Rustfmt
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v2
14
- - uses : actions-rs/ toolchain@v1
13
+ - uses : actions/checkout@v3
14
+ - uses : dtolnay/rust- toolchain@stable
15
15
with :
16
- profile : minimal
17
- toolchain : stable
18
- override : true
19
16
components : rustfmt
20
- - uses : actions-rs/cargo@v1
21
- with :
22
- command : fmt
23
- args : --all -- --check
24
- - uses : actions-rs/cargo@v1
25
- with :
26
- command : clippy
27
- args : --all-features
17
+ - run : cargo fmt --all -- --check
18
+ - run : cargo clippy --all-features
You can’t perform that action at this time.
0 commit comments