Skip to content

chore(ci): faster builds #12

chore(ci): faster builds

chore(ci): faster builds #12

Workflow file for this run

name: dynamic
on: pull_request
jobs:
check-build:
strategy:
matrix:
settings:
- host: windows-latest
- host: ubuntu-latest
runs-on: ${{ matrix.settings.host }}
name: test / ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- uses: Swatinem/[email protected]
with:
key: ${{ matrix.settings.host }}
- uses: sambacha/parallelish@v1
id: tasks
with:
cmd1: cargo build
cmd2: cargo check --release --all --bins --examples --tests
cmd3: cargo nextest run --all-targets
cmd4: cargo test --doc
check-macos:
runs-on: macos-latest
name: test / macos-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: aarch64-apple-darwin,x86_64-apple-darwin
- uses: taiki-e/install-action@nextest
- uses: Swatinem/[email protected]
with:
key: macos-latest
- uses: sambacha/parallelish@v1
id: tasks
with:
cmd1: cargo build --target x86_64-apple-darwin
cmd2: cargo build --target aarch64-apple-darwin
cmd3: cargo check --release --all --bins --examples --tests
cmd4: cargo nextest run --all-targets
cmd5: cargo test --doc