From 6912cc83d90c71faf6b58e9e32c81cdc3ad8ec2f Mon Sep 17 00:00:00 2001 From: Manuel Raimann Date: Fri, 30 Jan 2026 18:24:56 +0100 Subject: [PATCH] feat: add cross-target compilation checks in CI --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a38f88..e30b0ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -195,6 +195,27 @@ jobs: - name: Run tests 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: name: Typos @@ -228,6 +249,7 @@ jobs: - semver - minimal-versions - cross-platform + - cross-targets - typos steps: - uses: actions/checkout@v6