chore(ci): faster builds #13
Workflow file for this run
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: 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/[email protected] | |
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/[email protected] | |
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 |