aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2022-01-18 13:58:52 -0500
committerJack O'Connor <[email protected]>2022-01-18 14:29:44 -0500
commit1631016b86193d4c419a2f946c79068bf8bf3800 (patch)
tree20939487873287b77a3d198f5972ca783e81198c
parent4056af6d7ffdf4d13bb776b7ea1db2a6b52d4d75 (diff)
add a RAYON_NUM_THREADS=1 run to CI
-rw-r--r--.github/workflows/ci.yml5
1 files changed, 5 insertions, 0 deletions
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