build(deps): update bitflags requirement from 1.2.1 to 2.4.1 #117
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 3 1 * *' # at 03:00 UTC on the first day of each month | |
jobs: | |
cargo-test: | |
name: cargo test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-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 | |
cargo-deny: | |
name: cargo deny | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: cargo deny | |
uses: EmbarkStudios/cargo-deny-action@v1 |