From ae616e449cb503380ed8a9ed726a88c8e16c5d26 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Tue, 4 Oct 2022 01:05:53 +0530 Subject: [PATCH] CI: Add osx-x64 builds (#2943) --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3f8070d5a..dd79dc51f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -170,3 +170,39 @@ jobs: run: | cd bgfx ls -lash ".build/wasm/bin" + osx: + strategy: + fail-fast: true + matrix: + include: [ + { config: debug, binsuffix: Debug }, + { config: release, binsuffix: Release }, + ] + name: osx-x64-${{ matrix.config }} + runs-on: macos-latest + steps: + - name: Checkout bgfx + uses: actions/checkout@v3 + with: + path: bgfx + - name: Checkout bx + uses: actions/checkout@v3 + with: + repository: bkaradzic/bx + path: bx + - name: Checkout bimg + uses: actions/checkout@v3 + with: + repository: bkaradzic/bimg + path: bimg + - name: Build + run: | + cd bgfx + make -j$(sysctl -n hw.physicalcpu) osx-x64-${{ matrix.config }} + - name: Check + run: | + cd bgfx + ls -lash ".build/osx-x64/bin" + ".build/osx-x64/bin/geometryc${{ matrix.binsuffix}}" --version + ".build/osx-x64/bin/shaderc${{ matrix.binsuffix}}" --version + ".build/osx-x64/bin/texturec${{ matrix.binsuffix}}" --version