Document vendored ssl #57
Workflow file for this run
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: | |
pull_request: | |
branches: | |
- main | |
push: | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
# Cancel any currently running workflows from the same PR, branch, or | |
# tag when a new workflow is triggered. | |
# | |
# https://stackoverflow.com/a/66336834 | |
concurrency: | |
cancel-in-progress: true | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
jobs: | |
# -------------------------------------------------------------------------- | |
# Check | |
check: | |
name: Check | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- os: "macos-12" | |
target: "x86_64-apple-darwin" | |
- os: "ubuntu-22.04" | |
target: "x86_64-unknown-linux-gnu" | |
- os: "ubuntu-22.04" | |
target: "x86_64-unknown-linux-musl" | |
- os: "windows-2022" | |
target: "x86_64-pc-windows-msvc" | |
runs-on: ${{ matrix.platform.os }} | |
steps: | |
- name: Install dependencies | |
if: matrix.platform.os == 'ubuntu-22.04' | |
run: sudo apt-get install musl-tools libudev-dev | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: ${{ matrix.platform.target }} | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo check | |
check-lib: | |
name: Check (lib) | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install dependencies | |
run: sudo apt-get install musl-tools libudev-dev | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo check --lib --no-default-features | |
msrv: | |
name: Check MSRV | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install dependencies | |
run: sudo apt-get install musl-tools libudev-dev | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: "1.65" | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo check | |
# -------------------------------------------------------------------------- | |
# Test | |
test: | |
name: Unit Tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install dependencies | |
run: sudo apt-get install musl-tools libudev-dev | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo test --lib | |
# -------------------------------------------------------------------------- | |
# Lint | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install dependencies | |
run: sudo apt-get install musl-tools libudev-dev | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo clippy -- -D warnings -A clippy::too_many_arguments | |
rustfmt: | |
name: Rustfmt | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo fmt --all -- --check |