From 352a3dceb5edd6ee489b1a8c40da9718ef1b1232 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Wed, 15 Jan 2025 08:55:32 -0800 Subject: [PATCH] Run CI on other operating systems (#91) * Run CI on other operating systems * Don't run twice in pull requests * Windows is too slow --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aeb3612..e5d0756 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,14 +1,22 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + 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