77
88name : CI
99
10+ env :
11+ RUSTFLAGS : ' --deny warnings'
12+
1013jobs :
1114 ci-linux :
1215 name : CI
1518 strategy :
1619 matrix :
1720 # All published crates must build on stable.
18- rust : [stable, beta, 1.46.0 ]
21+ rust : [stable, beta, 1.56.1 ]
1922
2023 # The default target we're compiling on and for.
2124 TARGET : [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl]
@@ -27,26 +30,13 @@ jobs:
2730 TARGET : x86_64-unknown-linux-gnu
2831
2932 steps :
30- - uses : actions/checkout@v2
31- - uses : actions-rs/ toolchain@v1
33+ - uses : actions/checkout@v3
34+ - uses : dtolnay/rust- toolchain@master
3235 with :
33- profile : minimal
3436 toolchain : ${{ matrix.rust }}
35- target : ${{ matrix.TARGET }}
36- override : true
37- - uses : actions-rs/cargo@v1
38- with :
39- command : check
40- args : --target=${{ matrix.TARGET }}
41- - uses : actions-rs/cargo@v1
42- with :
43- command : build
44- args : --target=${{ matrix.TARGET }}
45- - uses : actions-rs/cargo@v1
46- with :
47- command : test
48- args : --target=${{ matrix.TARGET }}
49- - uses : actions-rs/cargo@v1
50- with :
51- command : build
52- args : --target=${{ matrix.TARGET }} --examples
37+ target : ${{ matrix.target }}
38+
39+ - run : cargo check --target=${{ matrix.TARGET }}
40+ - run : cargo build --target=${{ matrix.TARGET }}
41+ - run : cargo test --target=${{ matrix.TARGET }}
42+ - run : cargo build --target=${{ matrix.TARGET }} --examples
0 commit comments