@@ -196,6 +196,9 @@ jobs:
196
196
- run : cargo update
197
197
- uses : Swatinem/rust-cache@v2
198
198
- run : cargo test ${{ matrix.no_run }} --workspace --target ${{ matrix.target }} ${{ matrix.cargo_flags }}
199
+ # check that there are no uncommitted changes to prevent bugs like https://github.com/rust-lang/cc-rs/issues/1411
200
+ - name : check clean Git workting tree
201
+ uses : ./.github/actions/check-clean-git-working-tree
199
202
200
203
# This is separate from the matrix above because there is no prebuilt rust-std component for these targets.
201
204
check-build-std :
@@ -234,6 +237,9 @@ jobs:
234
237
- run : cargo test -Z build-std=std --no-run --workspace --target ${{ matrix.target }}
235
238
- run : cargo test -Z build-std=std --no-run --workspace --target ${{ matrix.target }} --release
236
239
- run : cargo test -Z build-std=std --no-run --workspace --target ${{ matrix.target }} --features parallel
240
+ # check that there are no uncommitted changes to prevent bugs like https://github.com/rust-lang/cc-rs/issues/1411
241
+ - name : check clean Git workting tree
242
+ uses : ./.github/actions/check-clean-git-working-tree
237
243
238
244
check-wasm :
239
245
name : Test wasm
@@ -252,6 +258,9 @@ jobs:
252
258
- run : cargo test --no-run --target ${{ matrix.target }}
253
259
- run : cargo test --no-run --target ${{ matrix.target }} --release
254
260
- run : cargo test --no-run --target ${{ matrix.target }} --features parallel
261
+ # check that there are no uncommitted changes to prevent bugs like https://github.com/rust-lang/cc-rs/issues/1411
262
+ - name : check clean Git workting tree
263
+ uses : ./.github/actions/check-clean-git-working-tree
255
264
256
265
test-wasm32-wasip1-thread :
257
266
name : Test wasm32-wasip1-thread
@@ -297,6 +306,10 @@ jobs:
297
306
- name : Run tests
298
307
run : cargo +nightly build -p $TARGET-test --target $TARGET
299
308
309
+ # check that there are no uncommitted changes to prevent bugs like https://github.com/rust-lang/cc-rs/issues/1411
310
+ - name : check clean Git workting tree
311
+ uses : ./.github/actions/check-clean-git-working-tree
312
+
300
313
cuda :
301
314
name : Test CUDA support
302
315
runs-on : ubuntu-22.04
@@ -317,6 +330,9 @@ jobs:
317
330
run : |
318
331
PATH="/usr/local/cuda/bin:$PATH" cargo test --manifest-path dev-tools/cc-test/Cargo.toml --features test_cuda
319
332
PATH="/usr/local/cuda/bin:$PATH" CXX=clang++ cargo test --manifest-path dev-tools/cc-test/Cargo.toml --features test_cuda
333
+ # check that there are no uncommitted changes to prevent bugs like https://github.com/rust-lang/cc-rs/issues/1411
334
+ - name : check clean Git workting tree
335
+ uses : ./.github/actions/check-clean-git-working-tree
320
336
321
337
msrv :
322
338
name : MSRV
@@ -353,6 +369,9 @@ jobs:
353
369
shell : bash
354
370
- uses : Swatinem/rust-cache@v2
355
371
- run : cargo clippy --no-deps
372
+ # check that there are no uncommitted changes to prevent bugs like https://github.com/rust-lang/cc-rs/issues/1411
373
+ - name : check clean Git workting tree
374
+ uses : ./.github/actions/check-clean-git-working-tree
356
375
357
376
rustfmt :
358
377
name : Rustfmt
0 commit comments