Update bindgen requirement from 0.69 to 0.70 #40
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: Rust | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: | |
- "1.70" | |
- stable | |
name: Test with ${{matrix.toolchain}} toolchain | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install pkgconf cmake | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{matrix.toolchain}} | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install dependencies compatible with MSRV | |
run: | | |
cargo update -p clap --precise 4.4.18 | |
if: ${{matrix.toolchain != 'stable'}} | |
- name: Test with no default features | |
run: cargo test --workspace --no-default-features --features vendored | |
- name: Test with default features | |
run: cargo test --workspace --features vendored | |
- name: Test with all features | |
run: cargo test --all-features --workspace | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install pkgconf cmake | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo fmt --all -- --check | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install pkgconf cmake | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo clippy --all --all-features -- -D warnings |