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:
|
|
|
|
|
2023-04-27 14:35:24 +02:00
|
|
|
env:
|
|
|
|
SCCACHE_GHA_ENABLED: "true"
|
|
|
|
RUSTC_WRAPPER: "sccache"
|
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-09-06 02:25:30 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-04-27 14:35:24 +02:00
|
|
|
- name: Setup sccache
|
|
|
|
uses: mozilla-actions/sccache-action@v0.0.3
|
2023-05-04 10:40:00 +02:00
|
|
|
with:
|
|
|
|
version: "v0.4.2"
|
2022-09-08 08:40:58 +02:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2023-04-27 14:35:24 +02:00
|
|
|
sudo apt-get update && \
|
2022-09-08 08:40:58 +02:00
|
|
|
sudo apt-get install -y \
|
|
|
|
libpam0g-dev \
|
|
|
|
libudev-dev \
|
|
|
|
libssl-dev \
|
|
|
|
pkg-config
|
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)"
|
2023-04-25 14:36:17 +02:00
|
|
|
run: cargo clippy
|
2022-09-08 08:40:58 +02:00
|
|
|
continue-on-error: true
|