From 1631016b86193d4c419a2f946c79068bf8bf3800 Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Tue, 18 Jan 2022 13:58:52 -0500 Subject: [PATCH] add a RAYON_NUM_THREADS=1 run to CI --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26c670c..d7d754f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,11 @@ jobs: working-directory: ./tools/instruction_set_support # Default tests plus Rayon and RustCrypto trait implementations. - run: cargo test --features=rayon,traits-preview + # Same but with only one thread in the Rayon pool. This can find deadlocks. + - name: "again with RAYON_NUM_THREADS=1" + run: cargo test --features=rayon,traits-preview + env: + RAYON_NUM_THREADS: 1 # no_std tests. - run: cargo test --no-default-features