update compilers for github action #6
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: Build and Test macOS | |
| on: [push] | |
| jobs: | |
| build: | |
| name: ${{ matrix.config.name }} (${{matrix.build_type}}) | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| build_type: [Debug, Release] | |
| config: | |
| - { | |
| name: "macOS Latest clang", | |
| os: macos-latest, | |
| cc: "clang", | |
| cxx: "clang++", | |
| } | |
| env: | |
| CC: ${{ matrix.config.cc }} | |
| CXX: ${{ matrix.config.cxx }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - run: echo "πββοΈ Running job ${{ matrix.config.name }} (${{matrix.build_type}})." | |
| - name: π¦ Install dependencies | |
| run: brew install ninja doxygen graphviz | |
| - name: π¨ Compiler info | |
| run: | | |
| which cmake | |
| cmake --version | |
| which ${CXX} | |
| ${CXX} --version | |
| - name: π·ββοΈ Build | |
| run: | | |
| cd build | |
| cmake -G Ninja -DCMAKE_BUILD_TYPE=${{matrix.build_type}} .. | |
| cmake --build . | |
| - name: π Test | |
| run: | | |
| cd build | |
| ctest -C ${{matrix.build_type}} |