Skip to content

Fix Github CI

Fix Github CI #9

Workflow file for this run

name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
RUST_BACKTRACE: short
RUSTFLAGS: "-D warnings"
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup toolchain install stable --profile minimal --no-self-update
- name: Get cache
uses: Swatinem/rust-cache@v2
- name: Install ALSA on Linux
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install -y libasound2-dev
- name: Build
run: cargo test --workspace --all-features --no-run
- name: Run tests
run: cargo test --workspace --all-features --no-fail-fast