Skip to content

chore(ci): faster builds #14

chore(ci): faster builds

chore(ci): faster builds #14

Workflow file for this run

name: dynamic
on: pull_request
jobs:
check-test:
strategy:
matrix:
settings:
- host: windows-latest
target: x86_64-pc-windows-gnu
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
- host: macos-latest
target: aarch64-apple-darwin
- host: macos-latest
target: x86_64-apple-darwin
runs-on: ${{ matrix.settings.host }}
name: test / ${{ matrix.settings.host }} / ${{ matrix.settings.target }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2.7.5
with:
key: test_${{ matrix.settings.host }}_${{ matrix.settings.target }}
- run: cargo nextest run --all-targets
- run: cargo test --doc
check-build:
strategy:
matrix:
settings:
- host: windows-latest
target: x86_64-pc-windows-gnu
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
- host: macos-latest
target: aarch64-apple-darwin
- host: macos-latest
target: x86_64-apple-darwin
runs-on: ${{ matrix.settings.host }}
name: build / ${{ matrix.settings.host }} / ${{ matrix.settings.target }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2.7.5
with:
key: build_${{ matrix.settings.host }}_${{ matrix.settings.target }}
- run: cargo check --all --bins --examples --tests
- run: cargo build