-
Notifications
You must be signed in to change notification settings - Fork 15
48 lines (48 loc) · 1.3 KB
/
pr-check.yaml
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
38
39
40
41
42
43
44
45
46
47
48
name: Check PR
on:
pull_request:
branches:
- "master"
paths-ignore:
- .github/workflows/charts-*
- charts/**
- .release-please-manifest.json
- release-please-config.json
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pr-check:
name: Run rust-clippy analyzing
runs-on:
group: "CPUBound"
permissions:
contents: read
checks: write
security-events: write
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libsecp256k1-dev libsodium-dev liblz4-dev
- uses: arduino/setup-protoc@v3
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-gnu
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- uses: actions-rs/clippy-check@v1
env:
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
CMAKE_C_COMPILER_LAUNCHER: "sccache"
CMAKE_CXX_COMPILER_LAUNCHER: "sccache"
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features