feat: add cross-target compilation checks in CI
This commit is contained in:
@@ -195,6 +195,27 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --all-features
|
run: cargo test --all-features
|
||||||
|
|
||||||
|
cross-targets:
|
||||||
|
name: ${{ matrix.target }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
target:
|
||||||
|
- aarch64-unknown-linux-gnu
|
||||||
|
- i686-unknown-linux-gnu
|
||||||
|
- powerpc64le-unknown-linux-gnu
|
||||||
|
- s390x-unknown-linux-gnu
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
- name: Install Rust
|
||||||
|
run: |
|
||||||
|
rustup override set stable
|
||||||
|
rustup update stable
|
||||||
|
rustup target add ${{ matrix.target }}
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- name: Check compilation
|
||||||
|
run: cargo check --all-features --target ${{ matrix.target }}
|
||||||
|
|
||||||
typos:
|
typos:
|
||||||
name: Typos
|
name: Typos
|
||||||
@@ -228,6 +249,7 @@ jobs:
|
|||||||
- semver
|
- semver
|
||||||
- minimal-versions
|
- minimal-versions
|
||||||
- cross-platform
|
- cross-platform
|
||||||
|
- cross-targets
|
||||||
- typos
|
- typos
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
|
|||||||
Reference in New Issue
Block a user