From 29143b018e1dc90fb0fbd0e6cd5142eabbf9fb5f Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Wed, 15 Dec 2021 19:52:11 +0200 Subject: [PATCH] Disable rustc incremental compilation to avoid ICEs --- .github/workflows/testing.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index e2f9b3bf3d..218783387b 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -64,10 +64,11 @@ jobs: target key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + # Use `env CARGO_INCREMENTAL=0` to mitigate https://github.com/rust-lang/rust/issues/91696 for rustc 1.57.0 - name: Run cargo build run: | - cargo build --workspace --bins --examples --tests + env CARGO_INCREMENTAL=0 cargo build --workspace --bins --examples --tests - name: Run cargo test run: | - cargo test -- --nocapture --test-threads=1 + env CARGO_INCREMENTAL=0 cargo test -- --nocapture --test-threads=1