-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 920 Bytes
/
clippy.yml
File metadata and controls
37 lines (31 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Clippy check
on: push
env:
CARGO_TERM_COLOR: always
jobs:
clippy_check:
runs-on: ubuntu-latest
strategy:
matrix:
edition: [community, enterprise]
include:
- edition: community
cargo_flags: ""
- edition: enterprise
cargo_flags: "--features=enterprise"
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- name: Install deps
run: |
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends libclang-dev
- name: Install rust
uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1 # v1
with:
toolchain: stable
components: clippy
- name: Clippy check
shell: bash
run: |
# shellcheck disable=SC2046
cargo clippy --color always ${{ matrix.cargo_flags }}