mirror of https://github.com/jackwener/wx-cli.git
ci: add cross-platform cargo check job before build
parent
6931dfc4cc
commit
2afea74eb9
|
|
@ -6,7 +6,23 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
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:
|
build:
|
||||||
|
needs: check
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue