Skip to content

Commit c3b2b1b

Browse files
paolobarbolinidodomorandiThinkerDreamer
committed
First commit
Co-authored-by: Edoardo Morandi <[email protected]> Co-authored-by: Angel Hudgins <[email protected]>
0 parents  commit c3b2b1b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+12354
-0
lines changed

.github/workflows/ci.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
cargo-deny:
7+
name: cargo-deny
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- uses: EmbarkStudios/cargo-deny-action@v2
13+
14+
fmt:
15+
name: rustfmt / 1.84.0
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: dtolnay/[email protected]
22+
with:
23+
components: rustfmt
24+
25+
- name: Rust rustfmt
26+
run: cargo fmt --all -- --check
27+
28+
clippy:
29+
name: clippy / 1.84.0
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
- uses: dtolnay/[email protected]
36+
with:
37+
components: clippy
38+
39+
- name: Run clippy
40+
run: cargo clippy --all-features -- -D warnings
41+
42+
cargo-hack:
43+
name: cargo-hack / 1.84.0
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
48+
- uses: dtolnay/[email protected]
49+
50+
- uses: taiki-e/install-action@v2
51+
with:
52+
53+
54+
- name: Run cargo-hack
55+
run: cargo hack check --feature-powerset --no-dev-deps --at-least-one-of aws-lc-rs,ring
56+
57+
test:
58+
name: test / ${{ matrix.name }}
59+
runs-on: ubuntu-latest
60+
61+
strategy:
62+
matrix:
63+
include:
64+
- name: stable
65+
rust: stable
66+
- name: beta
67+
rust: beta
68+
- name: nightly
69+
rust: nightly
70+
- name: 1.81.0
71+
rust: 1.81.0
72+
73+
steps:
74+
- uses: actions/checkout@v4
75+
76+
- uses: dtolnay/rust-toolchain@master
77+
with:
78+
toolchain: ${{ matrix.rust }}
79+
80+
- name: Run tests
81+
run: cargo test
82+
83+
- name: Run tests (--features websocket,portable-atomic)
84+
run: cargo test --features websocket,portable-atomic
85+
86+
- name: Run tests (--no-default-features --features ring)
87+
run: cargo test --no-default-features --features ring

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

.gitlab-ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
stages:
2+
- test
3+
4+
rust:deny:
5+
stage: test
6+
image: rust:1.84-alpine3.21
7+
before_script:
8+
- apk add cargo-deny
9+
script:
10+
- cargo deny check
11+
12+
rust:fmt:
13+
stage: test
14+
image: rust:1.84-alpine3.21
15+
before_script:
16+
- rustup component add rustfmt
17+
script:
18+
- cargo fmt -- --check
19+
20+
rust:clippy:
21+
stage: test
22+
image: rust:1.84-alpine3.20
23+
before_script:
24+
- apk add build-base musl-dev linux-headers cmake perl go
25+
- rustup component add clippy
26+
script:
27+
- cargo clippy --all-features -- -D warnings
28+
29+
rust:hack:
30+
stage: test
31+
image: rust:1.84-alpine3.20
32+
before_script:
33+
- apk add build-base musl-dev linux-headers cmake perl go
34+
- cargo install --locked [email protected]
35+
script:
36+
- cargo hack check --feature-powerset --no-dev-deps --at-least-one-of aws-lc-rs,ring
37+
38+
rust:test:
39+
stage: test
40+
image: rust:1.84-alpine3.21
41+
before_script:
42+
- apk add musl-dev cmake perl go
43+
script:
44+
- cargo test
45+
- cargo test --features websocket,portable-atomic
46+
- cargo test --no-default-features --features ring

0 commit comments

Comments
 (0)