@@ -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 :
@@ -64,44 +56,30 @@ jobs:
64
56
uses : actions/checkout@v3
65
57
66
58
- name : Setup ${{ matrix.toolchain }}
67
- uses : actions-rs/ toolchain@v1
59
+ uses : dtolnay/rust- toolchain@master
68
60
with :
69
61
toolchain : ${{ matrix.toolchain }}
70
- override : true
71
- profile : minimal
72
62
components : clippy
73
63
64
+ - name : ' `rustup override set ${{ matrix.toolchain }}`'
65
+ run : rustup override set ${{ matrix.toolchain }}
66
+
74
67
- name : Setup Python 3.8
75
68
uses : actions/setup-python@v4
76
69
with :
77
70
python-version : ' 3.8'
78
71
79
72
- name : ' `cargo clippy --all-targets --profile test -- -D warnings`'
80
- uses : actions-rs/cargo@v1
81
- with :
82
- command : clippy
83
- args : --all-targets --profile test -- -D warnings
73
+ run : cargo clippy --all-targets --profile test -- -D warnings
84
74
85
75
- name : ' `cargo clippy --manifest-path ./xtask/Cargo.toml -- -D warnings`'
86
- uses : actions-rs/cargo@v1
87
- with :
88
- command : clippy
89
- args : --manifest-path ./xtask/Cargo.toml -- -D warnings
76
+ run : cargo clippy --manifest-path ./xtask/Cargo.toml -- -D warnings
90
77
91
78
- name : ' `cargo test --all-targets --no-fail-fast`'
92
- uses : actions-rs/cargo@v1
93
- with :
94
- command : test
95
- args : --all-targets --no-fail-fast
79
+ run : cargo test --all-targets --no-fail-fast
96
80
97
81
- name : ' `cargo run --release`'
98
- uses : actions-rs/cargo@v1
99
- with :
100
- command : run
101
- args : --release
82
+ run : cargo run --release
102
83
103
84
- name : ' `cargo xtask test-examples`'
104
- uses : actions-rs/cargo@v1
105
- with :
106
- command : xtask
107
- args : test-examples
85
+ run : cargo xtask test-examples
0 commit comments