Skip to content

Commit 67b0f09

Browse files
committed
Add Clippy workflow
1 parent 4fc2bdd commit 67b0f09

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/clippy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Clippy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- staging
8+
- trying
9+
pull_request:
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
clippy:
16+
name: Clippy
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
submodules: true
22+
- name: Rustup (apply rust-toolchain.toml)
23+
run: rustup show
24+
- name: Clippy
25+
run: cargo clippy --all-targets -- -D warnings

rust-toolchain.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
[toolchain]
22
channel = "nightly-2021-05-19"
3-
components = [ "rustfmt", "rust-src", "llvm-tools-preview"]
3+
components = [
4+
"rust-src",
5+
"llvm-tools-preview",
6+
"rustfmt",
7+
"clippy",
8+
]
49
targets = [ "x86_64-unknown-hermit" ]

0 commit comments

Comments
 (0)