diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b775ca1a..7655dd6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,11 @@ on: [push] jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v4 @@ -20,6 +24,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Run formatter run: cargo fmt --check + if: matrix.os == 'ubuntu-latest' - name: Run clippy run: bash scripts/ci/clippy.bash - name: Run tests