Skip to content

Commit 5ee803d

Browse files
committed
github: lint: Use Rust stable for clippy
Using nightly for running clippy often causes warnings which are about non-stabilized features. Since we support building bpf-linker with stable, let's use it for clippy as well. Signed-off-by: Michal Rostecki <[email protected]>
1 parent 6f0044c commit 5ee803d

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/lint.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,24 @@ env:
1414
CARGO_TERM_COLOR: always
1515

1616
jobs:
17-
lint:
17+
lint-stable:
18+
runs-on: ubuntu-20.04
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- uses: actions-rs/toolchain@v1
24+
with:
25+
profile: minimal
26+
toolchain: stable
27+
components: clippy, rust-src
28+
override: true
29+
30+
- name: Run clippy
31+
run: |
32+
cargo clippy --workspace -- --deny warnings
33+
34+
lint-nightly:
1835
runs-on: ubuntu-20.04
1936

2037
steps:
@@ -24,12 +41,9 @@ jobs:
2441
with:
2542
profile: minimal
2643
toolchain: nightly
27-
components: rustfmt, clippy, miri, rust-src
44+
components: rustfmt, rust-src
2845
override: true
2946

3047
- name: Check formatting
3148
run: |
3249
cargo fmt --all -- --check
33-
- name: Run clippy
34-
run: |
35-
cargo clippy --workspace -- --deny warnings

0 commit comments

Comments
 (0)