Try macOS

This commit is contained in:
gitlost 2022-09-12 20:57:05 +01:00
parent 2ea56afa28
commit 3f57ed7e74

View File

@ -152,4 +152,28 @@ jobs:
- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
build-macOS:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DZINT_TEST=ON -DZINT_STATIC=ON -DZINT_USE_PNG=OFF -DZINT_USE_QT=OFF
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . -j8 --config $BUILD_TYPE
- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$(pwd)/backend" PATH=$PATH:"$(pwd)/frontend" ctest -V -C $BUILD_TYPE
run: PATH=$PATH:"$(pwd)/backend/Release:$(pwd)/frontend/Release" ctest -V -C $BUILD_TYPE