Release 0.5.0 #94
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: | |
# Don't build tags; that's redundant with pushes to main normally. | |
tags-ignore: "*" | |
# Only build main, for all other branches rely on pull requests. This | |
# avoids duplicate builds for pull requests. | |
branches: main | |
# Don't build for trivial changes | |
paths-ignore: | |
- "*.md" | |
- "LICENSE" | |
pull_request: | |
jobs: | |
cargo-deny: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: EmbarkStudios/cargo-deny-action@v1 | |
test: | |
name: test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
rust: | |
# Our minimal supported version | |
- "1.64.0" | |
# The standard Rust version | |
- stable | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: clippy,rustfmt | |
- run: cargo test --locked | |
# Run tests with fixed hostname on Unix systems | |
- run: sudo hostname hostname-for-testing | |
if: "!contains(matrix.os, 'windows')" | |
- run: cargo test --locked -- --ignored | |
if: "!contains(matrix.os, 'windows')" | |
- run: cargo clippy --locked --all-targets | |
if: matrix.rust == 'stable' | |
- run: cargo fmt --check | |
if: matrix.rust == 'stable' | |
- run: cargo doc | |
if: "!contains(matrix.os, 'windows')" |