Skip to content

Commit 2fb8c73

Browse files
committed
Add macos clippy runner with metal feature flag
1 parent 9ca71de commit 2fb8c73

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/rust-ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,20 @@ jobs:
5656

5757
clippy:
5858
name: Clippy
59-
runs-on: ubuntu-latest
59+
runs-on: ${{ matrix.os }}
60+
strategy:
61+
matrix:
62+
os: [ubuntu-latest, macOS-latest]
6063
steps:
61-
- uses: actions/checkout@v4
64+
- uses: actions/checkout@v5
6265
- uses: dtolnay/rust-toolchain@stable
6366
with:
6467
components: clippy
65-
- run: cargo clippy --workspace --tests --examples --benches -- -D warnings
68+
69+
- name: clippy metal
70+
if: runner.os == 'macOS'
71+
run: cargo clippy --features=metal --workspace --tests --examples --benches -- -D warnings
72+
73+
- name: clippy
74+
if: runner.os != 'macOS'
75+
run: cargo clippy --workspace --tests --examples --benches -- -D warnings

0 commit comments

Comments
 (0)