Skip to content

chore(main): release 0.8.0 (#32) #66

chore(main): release 0.8.0 (#32)

chore(main): release 0.8.0 (#32) #66

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: macOS (Metal)
os: macos-latest
features: metal
deps: ""
- name: Linux (CPU)
os: ubuntu-latest
features: ""
deps: libasound2-dev
- name: Windows (CPU)
os: windows-latest
features: ""
deps: ""
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install system deps (Linux)
if: matrix.deps != ''
run: sudo apt-get update && sudo apt-get install -y ${{ matrix.deps }}
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build ${{ matrix.features != '' && format('--features {0}', matrix.features) || '' }}
- name: Run tests
run: cargo test ${{ matrix.features != '' && format('--features {0}', matrix.features) || '' }}
- name: Check formatting
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy ${{ matrix.features != '' && format('--features {0}', matrix.features) || '' }} -- -D warnings