File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Lint and Test Code
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : read # Default token to read
10+
11+ jobs :
12+ rustfmt :
13+ name : rustfmt
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : harden runner
17+ uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
18+ with :
19+ egress-policy : audit
20+
21+ - name : checkout repository
22+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+ with :
24+ submodules : recursive
25+ persist-credentials : false
26+
27+ - name : ' cargo fmt'
28+ run : cargo fmt --all -- --check
29+
30+ full-build :
31+ runs-on : ubuntu-latest
32+ strategy :
33+ fail-fast : false
34+ matrix :
35+ arch :
36+ - x86_64
37+ env :
38+ TARGET_ARCH : " ${{ matrix.arch }}"
39+ name : ' Full build linux-${{ matrix.arch }}'
40+ steps :
41+ - name : harden runner
42+ uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
43+ with :
44+ egress-policy : audit
45+
46+ - name : checkout repository
47+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
48+ with :
49+ submodules : recursive
50+ persist-credentials : false
51+
52+ - name : cargo build
53+ run : cargo build
54+
55+ clippy :
56+ runs-on : ubuntu-latest
57+ strategy :
58+ matrix :
59+ arch :
60+ - x86_64
61+ env :
62+ TARGET_ARCH : " ${{ matrix.arch }}"
63+ name : ' Full clippy linux-${{ matrix.arch }}'
64+ steps :
65+ - name : harden runner
66+ uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
67+ with :
68+ egress-policy : audit
69+
70+ - name : checkout repository
71+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
72+ with :
73+ submodules : recursive
74+ persist-credentials : false
75+
76+ - name : ' cargo clippy'
77+ run : cargo clippy
You can’t perform that action at this time.
0 commit comments