Skip to content

Commit

Permalink
Update CI scripts to test new system feature
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 23, 2024
1 parent bfd10db commit 39312e7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
23 changes: 13 additions & 10 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
11 changes: 9 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ jobs:
uses: ClementTsang/[email protected]
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/[email protected]
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
Expand All @@ -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/[email protected]
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/[email protected]
with:
Expand Down

0 comments on commit 39312e7

Please sign in to comment.