Skip to content

Get rid of feature-gate macros #20

Get rid of feature-gate macros

Get rid of feature-gate macros #20

Workflow file for this run

name: Tests
on: [ pull_request ]
jobs:
lints:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Install clippy
run: rustup component add clippy
- name: Run clippy for sync with atomic-wait
run: cargo clippy -q -p latches --no-default-features --features sync --features atomic-wait
- name: Run clippy for sync with std
run: cargo clippy -q -p latches --no-default-features --features sync --features std
- name: Run clippy for futex
run: cargo clippy -q -p latches --no-default-features --features futex
- name: Run clippy for task with spins
run: cargo clippy -q -p latches --no-default-features --features task
- name: Run clippy for task with atomic-wait
run: cargo clippy -q -p latches --no-default-features --features task --features atomic-wait
- name: Run clippy for task with std
run: cargo clippy -q -p latches --no-default-features --features task --features std
- name: Run clippy for all with atomic-wait
run: cargo clippy -q -p latches --no-default-features --features task --features futex --features sync
- name: Run clippy for all targets
run: cargo clippy -q --all-targets --all-features
tests:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Run tests for sync with atomic-wait
run: cargo test -q -p latches --no-default-features --features sync --features atomic-wait
- name: Run tests for sync with std
run: cargo test -q -p latches --no-default-features --features sync --features std
- name: Run tests for futex
run: cargo test -q -p latches --no-default-features --features futex
- name: Run tests for task with spins
run: cargo test -q -p latches --no-default-features --features task
- name: Run tests for task with atomic-wait
run: cargo test -q -p latches --no-default-features --features task --features atomic-wait
- name: Run tests for task with std
run: cargo test -q -p latches --no-default-features --features task --features std
- name: Run tests for all with atomic-wait
run: cargo test -q -p latches --no-default-features --features task --features futex --features sync
- name: Run tests with std
run: cargo test -q -p no-std-tests -p latches --all-features