-
Notifications
You must be signed in to change notification settings - Fork 3
120 lines (97 loc) · 3.1 KB
/
pr.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Checks for PRs
# See: https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml
on: [pull_request]
name: PR
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
timeout-minutes: 8
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install packages for pcsc dep
run: sudo apt-get install -y libpcsclite-dev gengetopt
- name: Install stable toolchain
id: toolchain
uses: dtolnay/rust-toolchain@f361669954a8ecfc00a3443f35f9ac8e610ffc06
with:
profile: minimal
toolchain: 1.63
override: true
components: rustfmt, clippy
- name: Run cargo test
run: make -C src test
rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@f361669954a8ecfc00a3443f35f9ac8e610ffc06
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- name: Run cargo fmt
run: make -C src fmt
clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install packages for pcsc dep
run: sudo apt-get install -y libpcsclite-dev gengetopt
- name: Install stable toolchain
id: toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
profile: minimal
toolchain: 1.63
override: true
components: clippy
- name: Run cargo clippy
run: (cd src && cargo clippy -- -D warnings)
rustdocs:
name: rustdocs
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -D warnings
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install packages for pcsc dep
run: sudo apt-get install -y libpcsclite-dev gengetopt
- name: Install stable toolchain
id: toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
profile: minimal
toolchain: 1.63
override: true
- name: Run cargo doc
run: (cd src && cargo doc)
build-linux-only-crates:
name: build-linux-only-crates
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install packages for pcsc dep
run: sudo apt-get install -y libpcsclite-dev gengetopt
- name: Install stable toolchain
id: toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
profile: minimal
toolchain: 1.63
override: true
- name: Build qos_system
run: cargo build --manifest-path ./src/qos_system/Cargo.toml --locked
- name: Build qos_aws
run: cargo build --manifest-path ./src/qos_aws/Cargo.toml --locked
- name: Build init
run: cargo build --manifest-path ./src/init/Cargo.toml --locked