Skip to content

Commit

Permalink
Merge pull request #650 from mkroening/clippy-os
Browse files Browse the repository at this point in the history
ci: run Clippy for macOS on macOS
  • Loading branch information
mkroening authored Feb 20, 2024
2 parents 5613281 + a76c880 commit b26545e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,28 @@ jobs:

clippy:
name: Clippy
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
include:
- os: ubuntu-latest
targets: x86_64-unknown-linux-gnu
flags: --target x86_64-unknown-linux-gnu
- os: macos-latest
targets: x86_64-apple-darwin, aarch64-apple-darwin
flags: --target x86_64-apple-darwin --target aarch64-apple-darwin
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-gnu, x86_64-apple-darwin, aarch64-apple-darwin
targets: ${{ matrix.targets }}
components: clippy
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Clippy
run: cargo clippy --all-targets --target x86_64-unknown-linux-gnu --target x86_64-apple-darwin --target aarch64-apple-darwin -- -D warnings
run: cargo clippy --all-targets ${{ matrix.flags }} -- -D warnings

clippy-test-kernel:
name: Clippy test-kernels
Expand Down

0 comments on commit b26545e

Please sign in to comment.