From 988edc233bbd24bb009072aca7bc5199faf61cdb Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Tue, 19 Dec 2023 22:50:45 +0100 Subject: [PATCH] Add CI for Metal --- .github/workflows/Metal.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/Metal.yml diff --git a/.github/workflows/Metal.yml b/.github/workflows/Metal.yml new file mode 100644 index 00000000..787a79d7 --- /dev/null +++ b/.github/workflows/Metal.yml @@ -0,0 +1,30 @@ +name: "Metal" + +# Test that Metal build works with no specific option on Apple +on: + workflow_dispatch: + pull_request: + push: + + +jobs: + build: + name: Cpp Lib + runs-on: ${{ matrix.platform }} + strategy: + fail-fast: false + matrix: + test_engine: [ON, OFF] + + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Build and install + shell: bash + run: | + mkdir build + cd build + cmake .. -DHELLOIMGUI_USE_SDL_METAL=ON -DHELLOIMGUI_WITH_TEST_ENGINE=${{ matrix.test_engine }} -DCMAKE_BUILD_TYPE=Release + cmake --build . -j 3