@@ -11,17 +11,11 @@ jobs:
1111 with :
1212 submodules : recursive
1313 - name : install toolchain
14- uses : actions-rs/ toolchain@v1
14+ uses : dtolnay/rust- toolchain@stable
1515 with :
16- toolchain : stable
17- default : true
18- profile : minimal
1916 components : rustfmt
2017 - name : rustfmt
21- uses : actions-rs/cargo@v1
22- with :
23- command : fmt
24- args : --all -- --check
18+ run : cargo fmt --all --check
2519# Disabled because downstream crates don't check this as well
2620# minversions:
2721# runs-on: ubuntu-latest
@@ -73,28 +67,20 @@ jobs:
7367 with :
7468 submodules : recursive
7569 - name : install toolchain
76- uses : actions-rs/ toolchain@v1
70+ uses : dtolnay/rust- toolchain@master
7771 with :
7872 toolchain : ${{ matrix.toolchain }}
79- default : true
80- profile : minimal
8173 - name : Install Protoc
8274 uses : arduino/setup-protoc@v1
8375 with :
8476 repo-token : ${{ secrets.GITHUB_TOKEN }}
8577 - name : install ninja
8678 uses : seanmiddleditch/gha-setup-ninja@v3
87- - uses : Swatinem/rust-cache@v1
79+ - uses : Swatinem/rust-cache@v2
8880 - name : test
89- uses : actions-rs/cargo@v1
90- with :
91- command : test
92- args : --workspace --all-targets
81+ run : cargo test --workspace --all-targets
9382 - name : test no-default-features
94- uses : actions-rs/cargo@v1
95- with :
96- command : test
97- args : --no-default-features
83+ run : cargo test --no-default-features
9884
9985 kani :
10086 runs-on : ubuntu-latest
@@ -125,38 +111,24 @@ jobs:
125111 with :
126112 submodules : recursive
127113 - name : install toolchain
128- uses : actions-rs/toolchain@v1
129- with :
130- toolchain : nightly
131- default : true
132- profile : minimal
114+ uses : dtolnay/rust-toolchain@nightly
133115 - name : Install Protoc
134116 uses : arduino/setup-protoc@v1
135117 with :
136118 repo-token : ${{ secrets.GITHUB_TOKEN }}
137- - uses : Swatinem/rust-cache@v1
119+ - uses : Swatinem/rust-cache@v2
138120 - name : install cargo-no-std-check
139- uses : actions-rs /cargo@v1
121+ uses : baptiste0928 /cargo-install @v1
140122 with :
141- command : install
142- args : cargo-no-std-check
123+ crate : cargo-no-std-check
143124 - name : prost cargo-no-std-check
144- uses : actions-rs/cargo@v1
145- with :
146- command : no-std-check
147- args : --manifest-path Cargo.toml --no-default-features
125+ run : cargo no-std-check --manifest-path Cargo.toml --no-default-features
148126 - name : prost-types cargo-no-std-check
149- uses : actions-rs/cargo@v1
150- with :
151- command : no-std-check
152- args : --manifest-path prost-types/Cargo.toml --no-default-features
127+ run : cargo no-std-check --manifest-path prost-types/Cargo.toml --no-default-features
153128 # prost-build depends on prost with --no-default-features, but when
154129 # prost-build is built through the workspace, prost typically has default
155130 # features enabled due to vagaries in Cargo workspace feature resolution.
156131 # This additional check ensures that prost-build does not rely on any of
157132 # prost's default features to compile.
158133 - name : prost-build check
159- uses : actions-rs/cargo@v1
160- with :
161- command : check
162- args : --manifest-path prost-build/Cargo.toml
134+ run : cargo check --manifest-path prost-build/Cargo.toml
0 commit comments