Skip to content

Commit

Permalink
CI: Add clippy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Dec 13, 2021
1 parent a37773e commit da30b63
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Clippy

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

env:
CARGO_TERM_COLOR: always

jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Install NASM
run: |
sudo apt-get update
sudo apt-get install nasm
- uses: actions/checkout@v2
- name: Rustup (apply rust-toolchain.toml)
run: rustup show
- name: Clippy
run: cargo clippy -- -D warnings
1 change: 1 addition & 0 deletions bors.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
status = [
"Clippy",
"Test aarch64 (ubuntu-latest, nightly)",
"Test aarch64 (macOS-latest, nightly)",
"Test x86_64 (ubuntu-latest, nightly)",
Expand Down
7 changes: 6 additions & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[toolchain]
channel = "nightly-2021-12-04"
components = [ "rustfmt", "rust-src", "llvm-tools-preview"]
components = [
"clippy",
"llvm-tools-preview",
"rustfmt",
"rust-src",
]

0 comments on commit da30b63

Please # to comment.