ci: add cross-platform cargo check job before build

pull/2/head
jackwener 2026-04-16 23:26:08 +08:00
parent 6931dfc4cc
commit 2afea74eb9
1 changed files with 16 additions and 0 deletions

View File

@ -6,7 +6,23 @@ on:
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-pc-windows-msvc,aarch64-unknown-linux-gnu,x86_64-unknown-linux-gnu
- name: cargo check all targets
run: |
cargo check --target x86_64-unknown-linux-gnu
cargo check --target aarch64-unknown-linux-gnu
cargo check --target x86_64-pc-windows-msvc
build:
needs: check
strategy:
fail-fast: false
matrix: