-
Notifications
You must be signed in to change notification settings - Fork 3
86 lines (72 loc) · 2.09 KB
/
ci-code.yaml
File metadata and controls
86 lines (72 loc) · 2.09 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Lint and Test Code
on:
pull_request:
branches:
- main
permissions:
contents: read # Default token to read
jobs:
rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- name: harden runner
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- name: checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: recursive
persist-credentials: false
- name: Install llvm deps
uses: ./.github/actions/install-llvm
- name: 'cargo fmt'
run: cargo fmt --all -- --check
full-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch:
- x86_64
env:
TARGET_ARCH: "${{ matrix.arch }}"
name: 'Full build linux-${{ matrix.arch }}'
steps:
- name: harden runner
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- name: checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: recursive
persist-credentials: false
- name: Install llvm deps
uses: ./.github/actions/install-llvm
- name: cargo build
run: cargo build
clippy:
runs-on: ubuntu-latest
strategy:
matrix:
arch:
- x86_64
env:
TARGET_ARCH: "${{ matrix.arch }}"
name: 'Full clippy linux-${{ matrix.arch }}'
steps:
- name: harden runner
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- name: checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: recursive
persist-credentials: false
- name: Install llvm deps
uses: ./.github/actions/install-llvm
- name: 'cargo clippy'
run: cargo clippy