From d60bd74d4b0085c8c75297ffb4e289d3f2c09cd2 Mon Sep 17 00:00:00 2001 From: James Hiew Date: Thu, 1 Aug 2024 00:37:16 +0100 Subject: [PATCH] Build for macOS and Windows --- .github/workflows/ci.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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