Bump to v1.1.0 #288
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: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
RUST_BACKTRACE: 1 | |
jobs: | |
test: | |
name: Test Rust ${{ matrix.rust }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { rust: 1.60.0, os: ubuntu-latest } | |
- { rust: stable, os: ubuntu-latest } | |
- { rust: stable, os: macos-latest } | |
- { rust: stable, os: windows-latest } | |
- { rust: stable-i686-msvc, os: windows-latest } | |
- { rust: beta, os: ubuntu-latest } | |
- { rust: nightly, os: ubuntu-latest } | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hecrj/setup-rust-action@v2 | |
with: | |
rust-version: ${{ matrix.rust }} | |
- run: cargo test --verbose --workspace | |
cross-test: | |
name: Test on ${{ matrix.target }} (using cross) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
target: | |
- i686-unknown-linux-gnu | |
- armv7-linux-androideabi | |
- aarch64-unknown-linux-gnu | |
- powerpc-unknown-linux-gnu | |
- powerpc64-unknown-linux-gnu | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hecrj/setup-rust-action@v2 | |
- run: cargo install cross | |
- run: cross test --verbose --target=${{ matrix.target }} | |
check: | |
name: Check warnings | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -Dwarnings | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hecrj/setup-rust-action@v2 | |
- run: cargo check --workspace --all-targets --verbose | |
rustfmt: | |
name: Verify code formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hecrj/setup-rust-action@v2 | |
with: | |
components: rustfmt | |
- run: cargo fmt --all -- --check | |
codecov-tarpaulin: | |
name: coverage | |
runs-on: ubuntu-latest | |
container: | |
image: xd009642/tarpaulin:develop-nightly | |
options: --security-opt seccomp=unconfined | |
steps: | |
- uses: actions/checkout@v4 | |
- run: cargo tarpaulin --verbose --doc --all-features --all-targets --engine llvm --out xml | |
- uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |