From 5a606e2444ce36d9b6a9b090dd116976ee6ee17a Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Wed, 11 Oct 2023 18:09:41 +0200 Subject: [PATCH] CI: Cross-lint for Mac, iOS and Windows We have some conditional code specific to Mac and iOS which is currently untested in the CI, allowing non-compiling code in PRs like #795 to go unnoticed. --- .github/workflows/ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd2915449..d5b43bb3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,17 +61,24 @@ jobs: clippy: name: Clippy runs-on: ubuntu-latest + strategy: + matrix: + target: + - x86_64-pc-windows-msvc + - x86_64-unknown-linux-gnu + - x86_64-apple-darwin + - aarch64-apple-ios steps: - uses: actions/checkout@v1 - name: Clippy lint without features # Only test the core ash, ash-rewrite and ash-window crate, where features reside. # The examples crate would otherwise enable all default features again, # making this test moot. - run: cargo clippy -p ash -p ash-rewrite -p ash-window --no-default-features -- -D warnings + run: cargo clippy --target ${ matrix.target } -p ash -p ash-rewrite -p ash-window --no-default-features -- -D warnings - name: Clippy lint with all features - run: cargo clippy --workspace --all-targets --all-features -- -D warnings + run: cargo clippy --target ${ matrix.target } --workspace --all-targets --all-features -- -D warnings - name: Clippy lint with default features - run: cargo clippy --workspace --all-targets -- -D warnings + run: cargo clippy --target ${ matrix.target } --workspace --all-targets -- -D warnings docs: name: Build-test docs