This repository has been archived by the owner on Nov 3, 2024. It is now read-only.
release: cut the v0.22.0 release #177
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: build | |
on: | |
pull_request: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
- staging.tmp | |
- trying.tmp | |
schedule: | |
- cron: '0 1 1 * *' # at 01:00 UTC on the first day of each month | |
workflow_dispatch: | |
jobs: | |
cargo-test: | |
name: cargo test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: cargo test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --verbose --workspace --all-targets -- --include-ignored | |
# `cargo test --all-targets` does not run doctests: https://github.com/rust-lang/cargo/issues/6669. | |
- name: cargo test (doc) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --verbose --workspace --doc | |
cargo-fmt-clippy: | |
name: cargo fmt/clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: rustfmt, clippy | |
override: true | |
- name: cargo fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --verbose --all -- --check --verbose | |
- name: cargo clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --verbose --workspace --all-targets -- --deny warnings |