Merge Check, CheckTier3, Docs and DocsTier3 CI jobs #1065
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: | |
push: | |
branches: [ master, "v0.4.x" ] | |
pull_request: | |
branches: [ master, "v0.4.x" ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: full | |
jobs: | |
Test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
build: [stable, 1.63.0, beta, nightly, macos, windows] | |
include: | |
- build: stable | |
os: ubuntu-latest | |
rust: stable | |
- build: 1.63.0 | |
os: ubuntu-latest | |
rust: 1.63.0 | |
- build: beta | |
os: ubuntu-latest | |
rust: beta | |
- build: nightly | |
os: ubuntu-latest | |
rust: nightly | |
- build: macos | |
os: macos-latest | |
rust: stable | |
- build: windows | |
os: windows-latest | |
rust: stable | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- uses: taiki-e/install-action@cargo-hack | |
- name: Run tests | |
run: cargo hack test --feature-powerset && cargo hack test --feature-powerset --release | |
Rustfmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Check formatting | |
run: cargo fmt --all -- --check | |
Check: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
target: | |
- aarch64-apple-darwin | |
- aarch64-apple-ios | |
- aarch64-apple-tvos | |
- aarch64-apple-visionos | |
- aarch64-apple-watchos | |
- aarch64-linux-android | |
- aarch64-unknown-freebsd | |
- aarch64-unknown-hermit | |
- aarch64-unknown-linux-gnu | |
- aarch64-unknown-linux-musl | |
- aarch64-unknown-netbsd | |
- aarch64-unknown-nto-qnx710 | |
- aarch64-unknown-openbsd | |
- aarch64-unknown-redox | |
- arm-linux-androideabi | |
- arm64_32-apple-watchos | |
- armv7-linux-androideabi | |
- armv7-sony-vita-newlibeabihf | |
- i686-linux-android | |
- i686-unknown-hurd-gnu | |
- i686-unknown-linux-gnu | |
- riscv32imc-esp-espidf | |
- sparcv9-sun-solaris | |
- wasm32-wasi | |
- x86_64-apple-darwin | |
- x86_64-apple-ios | |
- x86_64-pc-nto-qnx710 | |
- x86_64-pc-solaris | |
- x86_64-pc-windows-gnu | |
- x86_64-pc-windows-msvc | |
- x86_64-unknown-dragonfly | |
- x86_64-unknown-freebsd | |
- x86_64-unknown-fuchsia | |
- x86_64-unknown-haiku | |
- x86_64-unknown-hermit | |
- x86_64-unknown-illumos | |
- x86_64-unknown-linux-gnu | |
- x86_64-unknown-linux-musl | |
- x86_64-unknown-netbsd | |
- x86_64-unknown-openbsd | |
- x86_64-unknown-redox | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rust-src | |
- uses: taiki-e/install-action@cargo-hack | |
- name: Check build | |
run: cargo hack check -Z build-std=std,panic_abort --feature-powerset --target ${{ matrix.target }} | |
- name: Check docs | |
run: RUSTDOCFLAGS="-D warnings --cfg docsrs" cargo doc -Z build-std=std,panic_abort --no-deps --all-features --target ${{ matrix.target }} | |
Clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Run Clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings |