From 6fef0fd04754023ed7c13a88d49a547c74d787ef Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Mon, 10 Jul 2023 10:58:18 +0200 Subject: [PATCH] add loom-util run --- .github/workflows/loom.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/loom.yml b/.github/workflows/loom.yml index 417c3b470..e78fead1d 100644 --- a/.github/workflows/loom.yml +++ b/.github/workflows/loom.yml @@ -52,3 +52,23 @@ jobs: LOOM_MAX_PREEMPTIONS: ${{ matrix.max_preemptions }} LOOM_MAX_BRANCHES: 10000 SCOPE: ${{ matrix.scope }} + loom-util: + name: loom on tokio-util + # base_ref is null when it's not a pull request + if: github.repository_owner == 'tokio-rs' && (contains(github.event.pull_request.labels.*.name, 'R-loom') || (github.base_ref == null)) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Rust ${{ env.rust_stable }} + uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ env.rust_stable }} + - uses: Swatinem/rust-cache@v2 + - name: loom tokio-util + run: cargo test --lib --release --features full -- --nocapture $SCOPE + working-directory: tokio-util + env: + RUSTFLAGS: --cfg loom --cfg tokio_unstable -Dwarnings -C debug-assertions + LOOM_MAX_PREEMPTIONS: ${{ matrix.max_preemptions }} + LOOM_MAX_BRANCHES: 10000 + SCOPE: ${{ matrix.scope }}