Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
Co-authored-by: Edoardo Morandi <[email protected]>
Co-authored-by: Angel Hudgins <[email protected]>
  • Loading branch information
3 people committed Jan 23, 2025
0 parents commit c3b2b1b
Show file tree
Hide file tree
Showing 98 changed files with 12,354 additions and 0 deletions.
87 changes: 87 additions & 0 deletions .github/workflows/ci.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
46 changes: 46 additions & 0 deletions .gitlab-ci.yml
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
Loading

0 comments on commit c3b2b1b

Please sign in to comment.