ci: run check, clippy, test, and build on linux, macos, and windows

Expands the PR verification workflow into a cross-platform matrix so we
catch platform-specific breakage before merge. Adds concurrency to cancel
superseded PR runs.
This commit is contained in:
objz committed 2026-05-19 19:56:13 +02:00
1 parent 17bb771020
commit 681f7974d6
1 file changed
+27 -6
+27 -6
View File
@@ -1,4 +1,4 @@
name: build name: ci
on: on:
push: push:
@@ -9,9 +9,22 @@ on:
permissions: permissions:
contents: read contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs: jobs:
check: verify:
runs-on: ubuntu-latest name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
@@ -28,9 +41,17 @@ jobs:
java-version: "21" java-version: "21"
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.os }}
- name: check - name: cargo check
run: cargo check --locked run: cargo check --locked --all-targets
- name: clippy - name: cargo clippy
run: cargo clippy --all-targets --locked -- -D warnings run: cargo clippy --all-targets --locked -- -D warnings
- name: cargo test
run: cargo test --locked --all-targets
- name: cargo build
run: cargo build --locked