From ce45832df74d396670ca431a3c092e3a78687abd Mon Sep 17 00:00:00 2001 From: Vianney Ruhlmann Date: Thu, 13 Jun 2024 15:10:17 +0200 Subject: [PATCH] Run clippy on windows in CI --- .github/workflows/lint.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 21d580fdd..bfe2fea02 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,13 +15,14 @@ jobs: run: rustup update nightly && rustup default nightly && rustup component add rustfmt - run: cargo fmt --all -- --check clippy: - name: "clippy #${{ matrix.rust_version }}" + name: "clippy #${{ matrix.platfrom }} ${{ matrix.rust_version }}" + runs-on: ${{ matrix.platform }} strategy: fail-fast: false matrix: # Ignore nightly for now, it fails too often rust_version: ["1.71.1", "stable"] - runs-on: ubuntu-latest + platform: [windows-latest, ubuntu-latest] steps: - name: Checkout sources uses: actions/checkout@v4 @@ -31,7 +32,7 @@ jobs: rust_version: ${{ matrix.rust_version }} - name: Install ${{ matrix.version }} toolchain and clippy run: rustup install ${{ matrix.rust_version }} && rustup default ${{ matrix.rust_version }} && rustup component add clippy - - run: cargo clippy --all-targets --all-features -- -D warnings $([ ${{ matrix.rust_version }} = 1.71.1 ] && echo -Aunknown-lints) + - run: cargo clippy --all-targets --all-features -- -D warnings $([ ${{ matrix.rust_version }} = 1.71.1 ] && echo -A unknown-lints) licensecheck: runs-on: ubuntu-latest name: "Presence of licence headers"