1515 flags : [--all-features, --no-default-features]
1616 steps :
1717 - uses : actions/checkout@v2
18+ - name : Install rust 1.70.0
19+ uses : actions-rs/toolchain@v1
20+ with :
21+ toolchain : 1.70.0
22+ override : true
1823
1924 - name : Build
2025 run : cargo build --workspace ${{ matrix.flags }} --verbose
3237 - uses : actions/checkout@v2
3338 - uses : actions-rs/toolchain@v1
3439 with :
35- toolchain : stable
40+ toolchain : 1.70.0
3641 target : ${{ matrix.target }}
3742 override : true
3843 - uses : actions-rs/cargo@v1
4853 os : [macos-latest, ubuntu-latest, windows-latest]
4954 steps :
5055 - uses : actions/checkout@v2
56+ - name : Install rust 1.70.0
57+ uses : actions-rs/toolchain@v1
58+ with :
59+ toolchain : 1.70.0
60+ override : true
5161
5262 - name : Pre-build binaries (for inventory integration tests)
5363 run : cargo build --workspace --all-features --verbose
7080 - uses : actions/checkout@v2
7181 - uses : actions-rs/toolchain@v1
7282 with :
73- toolchain : nightly
83+ toolchain : nightly # currently required due to -Zdoctest-xcompile
7484 target : ${{ matrix.target }}
7585 override : true
7686 - name : Pre-build binaries (for inventory integration tests)
@@ -90,11 +100,16 @@ jobs:
90100 runs-on : ubuntu-latest
91101 steps :
92102 - uses : actions/checkout@v2
103+ - uses : actions-rs/toolchain@v1
104+ with :
105+ toolchain : 1.70.0
106+ override : true
107+ components : rustfmt, clippy
93108 - run : rustup component add clippy
94109 - name : Check formatting
95110 run : cargo fmt -- --check
96111 - uses : actions-rs/clippy-check@v1
97112 with :
98113 token : ${{ secrets.GITHUB_TOKEN }}
99- args : --all-targets --all-features
114+ args : --all-targets --all-features --workspace -- -D clippy::all
100115
0 commit comments