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"