From 739c02b970f47039d378bd012ad8ac93d474f663 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Thu, 30 Dec 2021 18:19:41 +0100 Subject: [PATCH] Add CI test --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4474e9667bd..b709478df7d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,7 @@ jobs: needs: - test - test-unstable + - test-parking_lot - miri - cross - features @@ -77,6 +78,20 @@ jobs: # bench.yml workflow runs benchmarks only on linux. if: startsWith(matrix.os, 'ubuntu') + test-parking_lot: + name: compile tests with parking lot send guards + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Rust + run: rustup update stable + - uses: Swatinem/rust-cache@v1 + - name: Enable parking_lot send_guard feature + # Inserts the line "plsend = ["parking_lot/send_guard"]" right after [dependencies] + run: sed -i '/\[dependencies\]/a plsend = ["parking_lot/send_guard"]' tokio/Cargo.toml + - name: Compile tests with all features enabled + run: cargo build --workspace --all-features --tests + valgrind: name: valgrind runs-on: ubuntu-latest