instant-acme/.github/workflows/rust.yml

61 lines
1.4 KiB
YAML
Raw Normal View History

2022-05-12 08:19:26 +00:00
name: CI
on:
push:
branches: ['main']
pull_request:
schedule:
- cron: "25 6 * * 5"
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
2023-05-12 11:38:02 +00:00
rust: [stable, beta]
2022-05-12 08:19:26 +00:00
exclude:
- os: macos-latest
rust: beta
- os: windows-latest
rust: beta
runs-on: ${{ matrix.os }}
env:
AWS_LC_SYS_NO_ASM: 1
2022-05-12 08:19:26 +00:00
steps:
2023-10-30 08:48:30 +00:00
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
2022-05-12 08:19:26 +00:00
with:
toolchain: ${{ matrix.rust }}
2024-07-16 09:36:12 +00:00
- run: cargo check --no-default-features --features aws-lc-rs
- run: cargo check --no-default-features --features ring
- run: cargo check # hyper-rustls, ring
- run: cargo test
2022-05-12 08:19:26 +00:00
2023-05-12 11:38:02 +00:00
msrv:
runs-on: ubuntu-latest
steps:
2023-10-30 08:48:30 +00:00
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
2023-05-12 11:38:02 +00:00
with:
2024-07-12 07:43:48 +00:00
toolchain: 1.67.0
2023-10-30 08:48:05 +00:00
- run: cargo check --lib --all-features
2023-05-12 11:38:02 +00:00
2022-05-12 08:19:26 +00:00
lint:
runs-on: ubuntu-latest
steps:
2023-10-30 08:48:30 +00:00
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
2022-05-12 08:19:26 +00:00
with:
components: rustfmt, clippy
2023-10-30 08:48:05 +00:00
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets --all-features -- -D warnings
2022-05-12 08:19:26 +00:00
audit:
runs-on: ubuntu-latest
steps:
2023-10-30 08:48:30 +00:00
- uses: actions/checkout@v4
2022-05-12 08:19:26 +00:00
- uses: EmbarkStudios/cargo-deny-action@v1