-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 953 Bytes
/
check_rust.yml
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
name: Cargo check rust
on:
push:
branches: [ "main" ]
paths:
- '**.rs'
- '**.yml'
- '**.toml'
pull_request:
branches: [ "main" ]
paths:
- '**.rs'
- '**.yml'
- '**.toml'
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
cargo_check:
runs-on: ubuntu-latest
steps:
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.5
- uses: actions/checkout@v4
- name: Check code
run: cargo check
clippy:
needs: cargo_check
runs-on: ubuntu-latest
steps:
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.5
- uses: actions/checkout@v4
- name: Check code
run: cargo clippy --all-targets --all-features
# run: cargo clippy
# run: cargo test
# - name: Run sccache stat for check
# shell: bash
# run: ${SCCACHE_PATH} --show-stats