From 39312e734fb4342a89d60e45e50c557f1c46dd7b Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 23 Jun 2024 18:26:52 +0200 Subject: [PATCH] Update CI scripts to test new `system` feature --- .cirrus.yml | 23 +++++++++++++---------- .github/workflows/CI.yml | 11 +++++++++-- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index ac50b608d..4483e5802 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -11,11 +11,12 @@ task: test_script: - . $HOME/.cargo/env - cargo check - - cargo check --no-default-features + - RUSTFLAGS=-Dwarnings cargo check --no-default-features + - RUSTFLAGS=-Dwarnings cargo check --no-default-features --features system - cargo clippy -- -D warnings - cargo check --example simple - - FREEBSD_CI=1 cargo test -j1 - - FREEBSD_CI=1 cargo test --lib -j1 -- --ignored + - FREEBSD_CI=1 cargo test -- --test-threads=1 + - FREEBSD_CI=1 cargo test --lib -- --ignored --test-threads=1 task: name: rust nightly on freebsd 13 @@ -30,11 +31,12 @@ task: test_script: - . $HOME/.cargo/env - cargo check - - cargo check --no-default-features + - RUSTFLAGS=-Dwarnings cargo check --no-default-features + - RUSTFLAGS=-Dwarnings cargo check --no-default-features --features system - cargo clippy -- -D warnings - cargo check --example simple - - FREEBSD_CI=1 cargo test -j1 - - FREEBSD_CI=1 cargo test --lib -j1 -- --ignored + - FREEBSD_CI=1 cargo test -- --test-threads=1 + - FREEBSD_CI=1 cargo test --lib -- --test-threads=1 task: name: rust 1.74 on mac m1 @@ -51,9 +53,10 @@ task: test_script: - source $HOME/.cargo/env - cargo check - - cargo check --no-default-features - - cargo check --no-default-features --features apple-sandbox + - RUSTFLAGS=-Dwarnings cargo check --no-default-features + - RUSTFLAGS=-Dwarnings cargo check --no-default-features --features system + - RUSTFLAGS=-Dwarnings cargo check --no-default-features --features apple-sandbox - cargo clippy -- -D warnings - cargo check --example simple - - APPLE_CI=1 cargo test -j1 - - APPLE_CI=1 cargo test --lib -j1 -- --ignored + - APPLE_CI=1 cargo test -- --test-threads=1 + - APPLE_CI=1 cargo test --lib -- --ignored --test-threads=1 diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d1553eb4d..df5d5f9e0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -81,14 +81,14 @@ jobs: uses: ClementTsang/cargo-action@v0.0.6 with: command: rustc - args: --target=${{ matrix.triple.target }} --manifest-path=Cargo.toml -- -D warnings + args: --target=${{ matrix.triple.target }} --manifest-path=Cargo.toml use-cross: ${{ matrix.triple.cross }} - name: Check debug feature uses: ClementTsang/cargo-action@v0.0.6 with: command: rustc - args: --target=${{ matrix.triple.target }} --manifest-path=Cargo.toml --features=debug -- -D warnings + args: --target=${{ matrix.triple.target }} --manifest-path=Cargo.toml --features=debug use-cross: ${{ matrix.triple.cross }} - name: Check without multithreading @@ -98,6 +98,13 @@ jobs: args: --target=${{ matrix.triple.target }} --manifest-path=Cargo.toml --no-default-features use-cross: ${{ matrix.triple.cross }} + - name: Check features + uses: ClementTsang/cargo-action@v0.0.6 + with: + command: check + args: --target=${{ matrix.triple.target }} --manifest-path=Cargo.toml --no-default-features --features system + use-cross: ${{ matrix.triple.cross }} + - name: Check example uses: ClementTsang/cargo-action@v0.0.6 with: