2024-03-17 18:03:52 +00:00
|
|
|
name: clippy
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
clippy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev
|
|
|
|
|
|
|
|
- name: Select rust version
|
|
|
|
run: |
|
|
|
|
rustup toolchain install 1.70 --profile minimal --no-self-update
|
|
|
|
rustup default 1.70
|
|
|
|
rustup component add clippy
|
|
|
|
|
|
|
|
- name: Check clippy
|
|
|
|
run: |
|
2024-03-17 19:26:00 +00:00
|
|
|
cargo clippy --workspace
|