temp #355
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, pull_request] | |
| jobs: | |
| build: | |
| runs-on: macos-15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| build-type: [ Release, RelWithDebInfo, Debug ] | |
| compiler: [ | |
| { cxx: $(brew --prefix llvm@19)/bin/clang++, pkgs: llvm@19, extra-flags: -fexperimental-library }, | |
| { cxx: $(brew --prefix llvm@20)/bin/clang++, pkgs: llvm@20 }, | |
| { cxx: g++-11, pkgs: gcc@11, extra-flags: "-undefined dynamic_lookup -Wno-psabi -Wno-nonnull" }, | |
| { cxx: g++-12, pkgs: gcc@12, extra-flags: "-undefined dynamic_lookup -Wno-psabi -Wno-nonnull" }, | |
| { cxx: g++-13, pkgs: gcc@13, extra-flags: "-undefined dynamic_lookup -Wno-psabi -Wno-nonnull" }, | |
| { cxx: g++-14, pkgs: gcc@14, extra-flags: "-undefined dynamic_lookup -Wno-psabi -Wno-nonnull" }, | |
| ] | |
| defaults: | |
| run: | |
| working-directory: ${{ github.workspace }}/build | |
| name: ${{ matrix.compiler.cxx }}, ${{ matrix.build-type }} | |
| steps: | |
| - name: checkout-repo | |
| uses: actions/checkout@v4 | |
| - name: setup-compiler | |
| run: brew update && brew install ${{ matrix.compiler.pkgs }} | |
| - name: setup-catch | |
| run: sudo bash ../tools/install_catch.sh ${{ matrix.build-type }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} -DCMAKE_CXX_FLAGS="${{ matrix.compiler.extra-flags }}" | |
| - name: setup-build | |
| run: cmake .. -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -DCMAKE_CXX_FLAGS="${{ matrix.compiler.extra-flags }}" -DGAPP_USE_WERROR=ON | |
| - name: build | |
| run: cmake --build . --parallel 8 | |
| - name: run-tests | |
| run: ctest --output-on-failure --schedule-random | |
| - name: install | |
| run: sudo cmake --install . |