Skip to content

chore(ci): faster builds #16

chore(ci): faster builds

chore(ci): faster builds #16

Workflow file for this run

name: dynamic
on: pull_request
jobs:
check-test:
strategy:
matrix:
settings:
- host: windows-latest
target: x86_64-pc-windows-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
- host: ubuntu-latest
target: aarch64-unknown-linux-gnu
- host: ubuntu-latest
target: x86_64-unknown-linux-musl
- 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@master
with:
toolchain: stable
targets: ${{ matrix.settings.target }}
- uses: taiki-e/install-action@nextest
- uses: Swatinem/[email protected]
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-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
- host: ubuntu-latest
target: aarch64-unknown-linux-gnu
- host: ubuntu-latest
target: x86_64-unknown-linux-musl
- 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
with:
toolchain: stable
targets: ${{ matrix.settings.target }}
- uses: Swatinem/[email protected]
with:
key: build_${{ matrix.settings.host }}_${{ matrix.settings.target }}
- run: cargo check --all --bins --examples --tests
- run: cargo build