@@ -15,25 +15,17 @@ jobs:
15
15
- name : Checkout
16
16
uses : actions/checkout@v3
17
17
18
- - name : Setup 1.42.0-x86_64-unknown-linux-gnu
19
- uses : actions-rs/ toolchain@v1
18
+ - name : Set up Rust
19
+ uses : dtolnay/rust- toolchain@master
20
20
with :
21
21
toolchain : 1.42.0-x86_64-unknown-linux-gnu
22
- override : true
23
- profile : minimal
24
22
components : rustfmt
25
23
26
24
- name : ' `cargo fmt -- --check`'
27
- uses : actions-rs/cargo@v1
28
- with :
29
- command : fmt
30
- args : -- --check
25
+ run : cargo fmt -- --check
31
26
32
27
- name : ' `cargo fmt --manifest-path ./xtask/Cargo.toml -- --check`'
33
- uses : actions-rs/cargo@v1
34
- with :
35
- command : fmt
36
- args : --manifest-path ./xtask/Cargo.toml -- --check
28
+ run : cargo fmt --manifest-path ./xtask/Cargo.toml -- --check
37
29
38
30
build :
39
31
strategy :
@@ -63,44 +55,30 @@ jobs:
63
55
uses : actions/checkout@v3
64
56
65
57
- name : Setup ${{ matrix.toolchain }}
66
- uses : actions-rs/ toolchain@v1
58
+ uses : dtolnay/rust- toolchain@master
67
59
with :
68
60
toolchain : ${{ matrix.toolchain }}
69
- override : true
70
- profile : minimal
71
61
components : clippy
72
62
63
+ - name : ' `rustup override set ${{ matrix.toolchain }}`'
64
+ run : rustup override set ${{ matrix.toolchain }}
65
+
73
66
- name : Setup Python 3.8
74
67
uses : actions/setup-python@v4
75
68
with :
76
69
python-version : ' 3.8'
77
70
78
71
- name : ' `cargo clippy --all-targets --profile test -- -D warnings`'
79
- uses : actions-rs/cargo@v1
80
- with :
81
- command : clippy
82
- args : --all-targets --profile test -- -D warnings
72
+ run : cargo clippy --all-targets --profile test -- -D warnings
83
73
84
74
- name : ' `cargo clippy --manifest-path ./xtask/Cargo.toml -- -D warnings`'
85
- uses : actions-rs/cargo@v1
86
- with :
87
- command : clippy
88
- args : --manifest-path ./xtask/Cargo.toml -- -D warnings
75
+ run : cargo clippy --manifest-path ./xtask/Cargo.toml -- -D warnings
89
76
90
77
- name : ' `cargo test --all-targets --no-fail-fast`'
91
- uses : actions-rs/cargo@v1
92
- with :
93
- command : test
94
- args : --all-targets --no-fail-fast
78
+ run : cargo test --all-targets --no-fail-fast
95
79
96
80
- name : ' `cargo run --release`'
97
- uses : actions-rs/cargo@v1
98
- with :
99
- command : run
100
- args : --release
81
+ run : cargo run --release
101
82
102
83
- name : ' `cargo xtask test-examples`'
103
- uses : actions-rs/cargo@v1
104
- with :
105
- command : xtask
106
- args : test-examples
84
+ run : cargo xtask test-examples
0 commit comments