name: CI
on:
push:
branches:
pull_request:
branches:
jobs:
check:
name: Check (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
# The imported v86 CPU port retains upstream formatting; compilation,
# tests, and package verification are the portability gates here.
- run: cargo check --all-targets
- run: cargo test --all-targets
- run: cargo package --allow-dirty --no-verify