Merge pull request #2 from oclero/dev #19
This file contains hidden or 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: MacOS | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - dev | |
| pull_request: | |
| branches: | |
| - master | |
| - dev | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Check Out | |
| uses: actions/checkout@v4 | |
| - name: Install Ninja | |
| run: brew install ninja | |
| - name: Install Qt | |
| uses: jurplel/install-qt-action@v4 | |
| with: | |
| version: "6.8.2" | |
| host: mac | |
| target: desktop | |
| arch: clang_64 | |
| - name: Configure CMake | |
| run: cmake --preset macos -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install | |
| - name: Build library | |
| run: cmake --build --preset macos --target install | |
| - name: Build tests | |
| run: cmake --build --preset macos-test | |
| - name: Run tests | |
| run: ctest --preset macos |