chore: release v0.11.1 #589
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 | |
# yamllint disable-line rule:truthy | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
jobs: | |
format: | |
name: Check format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
targets: wasm32-unknown-unknown | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo fmt --all --check | |
lint-web: | |
name: Lint Web | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
targets: wasm32-unknown-unknown | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- run: | | |
cargo clippy --lib --bin tetanes --target wasm32-unknown-unknown --all-features --keep-going -- -D warnings | |
lint-tetanes: | |
name: Lint TetaNES (${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
# TODO: pin nightly temporarily to fix coreaudio-sys issue with 2024-06-23 | |
# See: https://github.com/RustAudio/coreaudio-sys/issues/104 | |
toolchain: nightly-2024-06-16 | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
sudo apt update | |
sudo apt install -y libudev-dev libasound2-dev | |
- run: | | |
cargo clippy -p tetanes --all-features --keep-going -- -D warnings | |
lint-tetanes-core: | |
name: Lint TetaNES Core (${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
toolchain: [nightly, stable, 1.78] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- run: | | |
cargo clippy -p tetanes-core --all-features --keep-going -- -D warnings | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
- uses: Swatinem/rust-cache@v2 | |
- run: | | |
sudo apt update | |
sudo apt install -y libudev-dev libasound2-dev | |
- run: | | |
cargo test --all-targets --all-features --no-fail-fast | |
docs: | |
name: Docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- env: | |
RUSTDOCFLAGS: -D warnings | |
run: cargo doc --no-deps --document-private-items --all-features --workspace --examples --keep-going |