Skip to content

Commit

Permalink
Merge #140
Browse files Browse the repository at this point in the history
140: Add, enforce Clippy CI r=stlankes a=mkroening



Co-authored-by: Martin Kröning <mkroening@posteo.net>
  • Loading branch information
bors[bot] and mkroening authored Jun 16, 2021
2 parents 562956e + 0ac1048 commit aaceb07
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Clippy

on:
push:
branches:
- master
- staging
- trying
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Rustup (apply rust-toolchain.toml)
run: rustup show
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
1 change: 1 addition & 0 deletions bors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ status = [
"Test (windows-latest, nightly)",
"Test (ubuntu-latest, nightly)",
"Format check (ubuntu-latest, nightly)",
"Clippy",
"KVM Tests",
]
delete_merged_branches = true
Expand Down
7 changes: 6 additions & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[toolchain]
channel = "nightly-2021-05-19"
components = [ "rustfmt", "rust-src", "llvm-tools-preview"]
components = [
"rust-src",
"llvm-tools-preview",
"rustfmt",
"clippy",
]
targets = [ "x86_64-unknown-hermit" ]

0 comments on commit aaceb07

Please sign in to comment.