Skip to content

ci: Refactor CI workflow #8

ci: Refactor CI workflow

ci: Refactor CI workflow #8

Workflow file for this run

name: Rust CI
on:
push:
branches:
- main
pull_request:
paths:
- .github/workflows/rust.yml
- Cargo.toml
- crates/**
- src/**
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
matrix:
target:
- { os: ubuntu-latest, toolchain: stable, triple: x86_64-unknown-linux-gnu }
runs-on: ${{ matrix.target.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.target.toolchain }}
targets: ${{ matrix.target.triple }}
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- run: |
cargo nextest run --workspace --profile ci