diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8eb8988..799b8ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,13 @@ jobs: - uses: Swatinem/rust-cache@v2 - run: cargo test build-debug: - runs-on: ubuntu-latest + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + runs-on: ${{ matrix.os }} needs: - vet - test @@ -50,6 +56,7 @@ jobs: - uses: actions/checkout@v4 - run: rustup show - name: Install system packages needed by Bevy + if: matrix.os == 'ubuntu-latest' run: | sudo apt-get install -y g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libxkbcommon-dev - uses: Swatinem/rust-cache@v2 @@ -59,7 +66,13 @@ jobs: name: infinigen-debug-${{ runner.os }}-${{ runner.arch }} path: target/debug/infinigen build-release: - runs-on: ubuntu-latest + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + runs-on: ${{ matrix.os }} needs: - vet - test @@ -67,6 +80,7 @@ jobs: - uses: actions/checkout@v4 - run: rustup show - name: Install system packages needed by Bevy + if: matrix.os == 'ubuntu-latest' run: | sudo apt-get install -y g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libxkbcommon-dev - uses: Swatinem/rust-cache@v2