hello_imgui_build_lib.cmake: publish HELLOIMGUI_GLAD_LIBRARY so that … #498
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Metal" | |
# Test that Metal build works on Apple | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
jobs: | |
build: | |
name: Metal | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
window_backend: [Glfw, Sdl, Both] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build and install | |
shell: bash | |
run: | | |
mkdir build | |
cd build | |
if [ "${{ matrix.window_backend }}" = "Glfw" ]; then | |
cmake .. -DHELLOIMGUI_USE_GLFW3=ON -DHELLOIMGUI_HAS_METAL=ON -DCMAKE_BUILD_TYPE=Release; | |
fi | |
if [ "${{ matrix.window_backend }}" = "Sdl" ]; then | |
cmake .. -DHELLOIMGUI_USE_SDL2=ON -DHELLOIMGUI_HAS_METAL=ON -DCMAKE_BUILD_TYPE=Release; | |
fi | |
if [ "${{ matrix.window_backend }}" = "Both" ]; then | |
cmake .. -DHELLOIMGUI_USE_GLFW3=ON -DHELLOIMGUI_USE_SDL2=ON -DHELLOIMGUI_HAS_METAL=ON -DCMAKE_BUILD_TYPE=Release; | |
fi | |
cmake --build . -j 3 |