Skip to content

Commit f5ed841

Browse files
committed
Add basic CI workflow
1 parent 593847e commit f5ed841

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
pull_request:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
test:
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
rust: [stable, beta]
18+
exclude:
19+
- os: macos-latest
20+
rust: beta
21+
- os: windows-latest
22+
rust: beta
23+
24+
runs-on: ${{ matrix.os }}
25+
26+
steps:
27+
- uses: actions/checkout@v5
28+
- uses: dtolnay/rust-toolchain@master
29+
with:
30+
toolchain: ${{ matrix.rust }}
31+
- run: cargo test --locked
32+
33+
lint:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v5
37+
- uses: dtolnay/rust-toolchain@stable
38+
with:
39+
components: rustfmt, clippy
40+
- run: cargo fmt --all -- --check
41+
- run: cargo clippy --all-targets --all-features -- -D warnings
42+
43+
audit:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v5
47+
- uses: EmbarkStudios/cargo-deny-action@v2

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "wireplex"
33
version = "0.1.0"
44
edition = "2024"
5+
license = "Apache-2.0 OR MIT"
56

67
[dependencies]
78
boringtun = "0.6"

deny.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[advisories]
2+
ignore = [
3+
"RUSTSEC-2024-0344", # timing variability in curve25519-dalek
4+
"RUSTSEC-2025-0009", # ring 0.16 QUIC header protection may panic
5+
"RUSTSEC-2025-0010", # ring 0.16 is unmaintained
6+
]
7+
8+
[licenses]
9+
allow = ["BSD-2-Clause", "BSD-3-Clause", "ISC", "MIT", "OpenSSL", "Unicode-3.0"]
10+
11+
[[licenses.clarify]]
12+
name = "ring"
13+
version = "0.16.20"
14+
expression = "MIT AND ISC AND OpenSSL"
15+
license-files = [
16+
{ path = "LICENSE", hash = 0xbd0eed23 }
17+
]

0 commit comments

Comments
 (0)