Skip to content

Run CI on other operating systems #356

Run CI on other operating systems

Run CI on other operating systems #356

Workflow file for this run

name: CI
on: [push, pull_request]
strategy:

Check failure on line 4 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 4, Col: 1): Unexpected value 'strategy'
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
jobs:
build:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
if: runner.os == 'Linux'
- name: check
run: cargo check
- name: examples
run: cargo check --examples
- name: fmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --all-targets --all-features -- -Dwarnings
- name: tests
run: cargo test --all-features