Update README.md #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
job1: | |
name: Nightly + MIRI tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
with: | |
targets: x86_64-unknown-linux-gnu, i686-unknown-linux-gnu | |
components: miri | |
- uses: Swatinem/rust-cache@v2 | |
- run: | | |
rustup run nightly cargo check -p talc --verbose | |
rustup run nightly cargo test -p talc --features=counters --verbose | |
rustup run nightly cargo test -p talc --tests --no-default-features --verbose | |
rustup run nightly cargo test -p talc --tests --no-default-features --features=lock_api,allocator-api2,counters --verbose | |
rustup run nightly cargo miri test -p talc --tests --verbose | |
rustup run nightly cargo miri test -p talc --tests --target i686-unknown-linux-gnu --verbose | |
rustup run nightly cargo check -p benchmarks --bin microbench --verbose | |
rustup run nightly cargo check -p benchmarks --bin random_actions --verbose | |
job2: | |
name: Check Stable | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: x86_64-unknown-linux-gnu, wasm32-unknown-unknown | |
- uses: Swatinem/rust-cache@v2 | |
- run: | | |
rustup run stable cargo check --no-default-features -p talc --verbose | |
rustup run stable cargo check --no-default-features -p talc --features=lock_api --verbose | |
rustup run stable cargo check --no-default-features -p talc --features=lock_api,allocator-api2,counters --verbose | |
rustup run stable cargo check -p talc --no-default-features --target wasm32-unknown-unknown --verbose | |
rustup run stable cargo check -p talc --no-default-features --features=lock_api,counters --target wasm32-unknown-unknown --verbose | |
rustup run stable cargo check -p stable_examples --example stable_allocator_api --verbose | |
rustup run stable cargo check -p stable_examples --example std_global_allocator --verbose | |
job3: | |
name: Check MSRV | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
- run: | | |
rustup toolchain add 1.67.1 --profile minimal | |
rustup run 1.67.1 cargo check -p talc --no-default-features --features lock_api,allocator-api2,counters --verbose |