Skip to content

Commit

Permalink
add github workflow (cargo clippy)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlidwka committed Jul 22, 2023
1 parent 8608d70 commit 789adbb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: clippy

on:
- push
- pull_request

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
rust:
- stable

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-build-stable-${{ hashFiles('**/Cargo.toml') }}
- name: install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
if: runner.os == 'linux'
- run: cargo clippy
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-C debuginfo=0 -D warnings"

0 comments on commit 789adbb

Please sign in to comment.