-
Notifications
You must be signed in to change notification settings - Fork 433
58 lines (49 loc) · 1.47 KB
/
ci.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
name: Industrial CI
on: [push, pull_request]
jobs:
industrial_validation:
name: Protocol Implementation Validation
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, 1.75.0]
platform: [x86_64, aarch64]
steps:
- uses: actions/checkout@v4
- name: Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.platform }}-unknown-linux-gnu
override: true
- name: Cache Dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Security Audit
uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Protocol Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --target ${{ matrix.platform }}-unknown-linux-gnu
industrial_linting:
name: Industrial-Grade Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --all-features -- -D warnings
- uses: actions-rs/format-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all -- --check