2022-09-08 08:40:58 +02:00
|
|
|
---
|
2022-04-27 05:02:54 +02:00
|
|
|
name: Clippy
|
2020-04-25 13:46:05 +02:00
|
|
|
|
|
|
|
# Trigger the workflow on push or pull request
|
2022-09-28 02:31:19 +02:00
|
|
|
"on":
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
|
2020-04-25 13:46:05 +02:00
|
|
|
|
2022-11-13 23:57:05 +01:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2020-04-25 13:46:05 +02:00
|
|
|
jobs:
|
2022-04-27 05:02:54 +02:00
|
|
|
clippy:
|
|
|
|
runs-on: ubuntu-latest
|
2020-04-25 13:46:05 +02:00
|
|
|
steps:
|
2023-04-18 13:35:40 +02:00
|
|
|
- uses: actions/checkout@v3
|
2022-11-13 23:57:05 +01:00
|
|
|
- name: Restore our cache
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cargo/bin/
|
|
|
|
~/.cargo/registry/index/
|
|
|
|
~/.cargo/registry/cache/
|
|
|
|
~/.cargo/git/db/
|
|
|
|
target/
|
|
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
2022-09-08 08:40:58 +02:00
|
|
|
- name: Update package manager
|
|
|
|
run: sudo apt-get update
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -y \
|
|
|
|
libpam0g-dev \
|
|
|
|
libudev-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libsqlite3-dev \
|
|
|
|
pkg-config
|
2020-04-25 13:46:05 +02:00
|
|
|
|
2022-11-13 23:57:05 +01:00
|
|
|
# - name: Install Rust
|
|
|
|
# uses: actions-rs/toolchain@v1
|
|
|
|
# with:
|
|
|
|
# toolchain: stable
|
|
|
|
# override: true
|
|
|
|
# default: true
|
2020-04-25 13:46:05 +02:00
|
|
|
|
2022-09-08 08:40:58 +02:00
|
|
|
- name: "Run clippy (ignores errors, this is just a check)"
|
2022-09-28 02:31:19 +02:00
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: clippy
|
2022-09-08 08:40:58 +02:00
|
|
|
continue-on-error: true
|