readme and example #28
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: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| macos-clang: | |
| runs-on: macos-latest | |
| name: macOS-Clang | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: brew update && brew install ninja cmake | |
| - name: Run CMake configuration and build | |
| run: | | |
| cmake tests -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
| -DCMAKE_C_COMPILER=clang \ | |
| -DCMAKE_CXX_COMPILER=clang++ | |
| cmake --build build --parallel | |
| - name: Run Unit Tests | |
| run: ./build/tests |