File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ${{ matrix.os }}
8
8
strategy :
9
9
matrix :
10
- os : [ubuntu-latest]
11
- rust : [nightly]
12
- include :
13
- - os : ubuntu-latest
14
- target : x86_64-unknown-linux-gnu
10
+ os : [ubuntu-22.04]
15
11
steps :
16
12
- uses : actions/checkout@v3
17
- - uses : dtolnay/rust-toolchain@stable
18
- with :
19
- toolchain : ${{ matrix.rust }}
20
- target : ${{ matrix.target }}
21
- override : true
13
+ - uses : dtolnay/rust-toolchain@nightly
22
14
- name : Run tests
23
15
run : |
24
- cargo test
16
+ RUSTFLAGS="-D warnings" cargo test
25
17
26
18
rustfmt :
27
19
name : Rustfmt
28
20
runs-on : ubuntu-latest
29
21
steps :
30
22
- uses : actions/checkout@v3
31
- - uses : dtolnay/rust-toolchain@stable
23
+ - uses : dtolnay/rust-toolchain@nightly
24
+ with :
25
+ components : rustfmt
32
26
- run : cargo fmt -- --check
You can’t perform that action at this time.
0 commit comments