-
Notifications
You must be signed in to change notification settings - Fork 27
132 lines (115 loc) · 4.36 KB
/
CI.yml
File metadata and controls
132 lines (115 loc) · 4.36 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
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
121
122
123
124
125
126
127
128
129
130
131
132
on:
push:
branches: [main]
pull_request:
name: CI
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- name: Check
run: cargo check
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- name: Build client (async-std / native)
run: |
cargo build --manifest-path ./client/Cargo.toml --no-default-features --features async-std --features native_crypto --features schema
- name: Build client (async-std / OpenSSL)
run: |
cargo build --manifest-path ./client/Cargo.toml --no-default-features --features async-std --features openssl_crypto --features schema
- name: Build client (tokio / native)
run: |
cargo build --manifest-path ./client/Cargo.toml --no-default-features --features tokio --features native_crypto --features schema
- name: Build client (tokio / OpenSSL)
run: |
cargo build --manifest-path ./client/Cargo.toml --no-default-features --features tokio --features openssl_crypto --features schema
- name: Build CLI
run: |
cargo build --manifest-path ./cli/Cargo.toml
- name: Build kwallet-parser
run: |
cargo build --manifest-path ./kwallet/parser/Cargo.toml
- name: Build kwallet-cli
run: |
cargo build --manifest-path ./kwallet/cli/Cargo.toml
- name: Build Server (native)
run: |
cargo build --manifest-path ./server/Cargo.toml
- name: Build Server (OpenSSL)
run: |
cargo build --manifest-path ./server/Cargo.toml --no-default-features --features openssl_crypto
- name: Build PAM
run: |
cargo build --manifest-path ./pam/Cargo.toml
- name: Build Portal
run: |
cargo build --manifest-path ./portal/Cargo.toml
- name: Test (native)
run: |
cargo test --manifest-path ./client/Cargo.toml --no-default-features --features tokio --features native_crypto --features schema
- name: Test (OpenSSL)
run: |
cargo test --manifest-path ./client/Cargo.toml --no-default-features --features tokio --features openssl_crypto --features schema
- name: Test Server (native)
run: |
cargo test --manifest-path ./server/Cargo.toml
- name: Test Server (OpenSSL)
run: |
cargo test --manifest-path ./server/Cargo.toml --no-default-features --features openssl_crypto
- name: Test kwallet-parser
run: |
cargo test --manifest-path ./kwallet/parser/Cargo.toml
cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: EmbarkStudios/cargo-deny-action@v2
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Rust Format
run: cargo fmt --all --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Clippy workspace (default features)
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Clippy client (tracing / async-std / native crypto)
run: cargo clippy -p oo7 --no-default-features --features tracing,async-std,native_crypto,schema -- -D warnings
- name: Clippy client (tracing / tokio / OpenSSL)
run: cargo clippy -p oo7 --no-default-features --features tracing,tokio,openssl_crypto,schema --all-targets -- -D warnings
meson:
name: Meson
runs-on: ubuntu-latest
container: fedora:latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: dnf install -y git meson gcc systemd
- name: Build (portal)
working-directory: ./portal
run: meson setup ./ _build --prefix /usr && ninja -C _build
- name: Build (server)
working-directory: ./server
run: meson setup ./ _build --prefix /usr && ninja -C _build
- name: Build (PAM)
working-directory: ./pam
run: meson setup ./ _build --prefix /usr && ninja -C _build