-
Notifications
You must be signed in to change notification settings - Fork 37
73 lines (65 loc) · 1.84 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: rust
on:
pull_request:
paths:
- Cargo.*
- '**/*.rs'
- '**/*.proto'
- justfile
- .github/workflows/rust.yml
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTFLAGS: "-D warnings -A deprecated"
RUSTUP_MAX_RETRIES: 10
permissions:
contents: read
jobs:
gen-check:
timeout-minutes: 10
runs-on: ubuntu-latest
container: docker://ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- run: just rs-fetch
- run: just rs-gen-check
rust-clippy:
timeout-minutes: 10
runs-on: ubuntu-latest
container: docker://ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- run: just rs-fetch
- run: just rs-clippy
rust-docs:
timeout-minutes: 10
runs-on: ubuntu-latest
container: docker://ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- run: just rs-fetch
- run: just rs-docs
rust-test:
timeout-minutes: 10
runs-on: ubuntu-latest
container: docker://ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- run: just rs-fetch
- run: just rs-test-build
- run: just rs-test
rust-deps:
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
checks:
- advisories
- bans licenses sources
# Prevent sudden announcement of a new advisory from failing Ci.
continue-on-error: ${{ matrix.checks == 'advisories' }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: EmbarkStudios/cargo-deny-action@3f4a782664881cf5725d0ffd23969fcce89fd868
with:
command: check ${{ matrix.checks }}