First commit #1
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
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 |