From bdfc72ee3dfab16267f4afac094d93a6f8c6044d Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Fri, 7 Jun 2024 18:31:00 +0100 Subject: [PATCH] ci: run non io-uring tests on Linux --- .github/workflows/ci.yml | 4 +--- justfile | 9 +++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a677684f..382a861b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ concurrency: jobs: read_msrv: name: Read MSRV - uses: actions-rust-lang/msrv/.github/workflows/msrv.yml@main + uses: actions-rust-lang/msrv/.github/workflows/msrv.yml@v0.1.0 build_and_test: needs: @@ -109,8 +109,6 @@ jobs: - name: tests run: just test - # TODO: re-instate some io-uring tests for PRs - - name: CI cache clean run: cargo-ci-cache-clean diff --git a/justfile b/justfile index eb046683..ae80165b 100644 --- a/justfile +++ b/justfile @@ -28,11 +28,20 @@ all_crate_features := if os() == "linux" { } # Test workspace code. +[macos, windows] test toolchain="": cargo {{ toolchain }} test --lib --tests --package=actix-macros cargo {{ toolchain }} nextest run --workspace --exclude=actix-macros --no-default-features cargo {{ toolchain }} nextest run --workspace --exclude=actix-macros {{ all_crate_features }} +# Test workspace code. +[linux] +test toolchain="": + cargo {{ toolchain }} test --lib --tests --package=actix-macros + cargo {{ toolchain }} nextest run --workspace --exclude=actix-macros --no-default-features + cargo {{ toolchain }} nextest run --workspace --exclude=actix-macros {{ non_linux_all_features_list }} + cargo {{ toolchain }} nextest run --workspace --exclude=actix-macros {{ all_crate_features }} + # Test workspace using MSRV. test-msrv: downgrade-for-msrv (test msrv_rustup)