[ADD] : add CTest steps in github actions #314
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: Osx | |
on: | |
push: | |
branches: | |
- DemoApp | |
jobs: | |
build_Osx: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: DemoApp | |
- name: checkout submodules | |
run : git submodule update --init --recursive | |
- name: Install OpenGL lib / Requirement for Glfw3 | |
run : brew update | |
- name: configure | |
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_TEST=ON | |
- name: build | |
run: cmake --build build | |
- name: CTest | |
run: ctest --test-dir build --output-on-failure | |
- name: upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ImGuiFileDialog_App_Macos.app | |
path: build/ImGuiFileDialog_App_Macos.app |