-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Edoardo Morandi <[email protected]> Co-authored-by: Angel Hudgins <[email protected]>
- Loading branch information
Showing
98 changed files
with
12,354 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
cargo-deny: | ||
name: cargo-deny | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: EmbarkStudios/cargo-deny-action@v2 | ||
|
||
fmt: | ||
name: rustfmt / 1.84.0 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: dtolnay/[email protected] | ||
with: | ||
components: rustfmt | ||
|
||
- name: Rust rustfmt | ||
run: cargo fmt --all -- --check | ||
|
||
clippy: | ||
name: clippy / 1.84.0 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: dtolnay/[email protected] | ||
with: | ||
components: clippy | ||
|
||
- name: Run clippy | ||
run: cargo clippy --all-features -- -D warnings | ||
|
||
cargo-hack: | ||
name: cargo-hack / 1.84.0 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: dtolnay/[email protected] | ||
|
||
- uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
- name: Run cargo-hack | ||
run: cargo hack check --feature-powerset --no-dev-deps --at-least-one-of aws-lc-rs,ring | ||
|
||
test: | ||
name: test / ${{ matrix.name }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- name: stable | ||
rust: stable | ||
- name: beta | ||
rust: beta | ||
- name: nightly | ||
rust: nightly | ||
- name: 1.81.0 | ||
rust: 1.81.0 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
|
||
- name: Run tests | ||
run: cargo test | ||
|
||
- name: Run tests (--features websocket,portable-atomic) | ||
run: cargo test --features websocket,portable-atomic | ||
|
||
- name: Run tests (--no-default-features --features ring) | ||
run: cargo test --no-default-features --features ring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
stages: | ||
- test | ||
|
||
rust:deny: | ||
stage: test | ||
image: rust:1.84-alpine3.21 | ||
before_script: | ||
- apk add cargo-deny | ||
script: | ||
- cargo deny check | ||
|
||
rust:fmt: | ||
stage: test | ||
image: rust:1.84-alpine3.21 | ||
before_script: | ||
- rustup component add rustfmt | ||
script: | ||
- cargo fmt -- --check | ||
|
||
rust:clippy: | ||
stage: test | ||
image: rust:1.84-alpine3.20 | ||
before_script: | ||
- apk add build-base musl-dev linux-headers cmake perl go | ||
- rustup component add clippy | ||
script: | ||
- cargo clippy --all-features -- -D warnings | ||
|
||
rust:hack: | ||
stage: test | ||
image: rust:1.84-alpine3.20 | ||
before_script: | ||
- apk add build-base musl-dev linux-headers cmake perl go | ||
- cargo install --locked [email protected] | ||
script: | ||
- cargo hack check --feature-powerset --no-dev-deps --at-least-one-of aws-lc-rs,ring | ||
|
||
rust:test: | ||
stage: test | ||
image: rust:1.84-alpine3.21 | ||
before_script: | ||
- apk add musl-dev cmake perl go | ||
script: | ||
- cargo test | ||
- cargo test --features websocket,portable-atomic | ||
- cargo test --no-default-features --features ring |
Oops, something went wrong.