Skip to content
Snippets Groups Projects
Select Git revision
  • 04fc22a5b0c95070fe40c61fe2db5c6bdac384d5
  • develop default protected
  • save_clemence
  • feature/local-dt-fsi
  • origin/stage/bouguettaia
  • feature/variational-hydro
  • feature/gmsh-reader
  • feature/reconstruction
  • feature/kinetic-schemes
  • feature/composite-scheme-sources
  • feature/composite-scheme-other-fluxes
  • feature/serraille
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • master protected
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

mac-builds.yml

Blame
  • Stephane Del Pino's avatar
    Stéphane Del Pino authored
    subrepo:
      subdir:   "packages/Catch2"
      merged:   "1078e7e95"
    upstream:
      origin:   "git@github.com:catchorg/Catch2.git"
      branch:   "devel"
      commit:   "1078e7e95"
    git-subrepo:
      version:  "0.4.6"
      origin:   "git@github.com:ingydotnet/git-subrepo.git"
      commit:   "110b9eb"
    04fc22a5
    History
    mac-builds.yml 1.52 KiB
    name: Mac builds
    
    on: [push, pull_request]
    
    jobs:
      build:
        # macos-12 updated to a toolchain that crashes when linking the
        # test binary. This seems to be a known bug in that version,
        # and will eventually get fixed in an update. After that, we can go
        # back to newer macos images.
        runs-on: macos-11
        strategy:
          matrix:
            cxx:
              - g++-11
              - clang++
            build_type: [Debug, Release]
            std: [14, 17]
            include:
              - build_type: Debug
                examples: ON
                extra_tests: ON
    
        steps:
        - uses: actions/checkout@v4
    
        - name: Configure build
          working-directory: ${{runner.workspace}}
          env:
            CXX: ${{matrix.cxx}}
            CXXFLAGS: ${{matrix.cxxflags}}
          # Note: $GITHUB_WORKSPACE is distinct from ${{runner.workspace}}.
          #       This is important
          run: |
            cmake -Bbuild -H$GITHUB_WORKSPACE \
                  -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
                  -DCMAKE_CXX_STANDARD=${{matrix.std}} \
                  -DCMAKE_CXX_STANDARD_REQUIRED=ON \
                  -DCATCH_DEVELOPMENT_BUILD=ON \
                  -DCATCH_BUILD_EXAMPLES=${{matrix.examples}} \
                  -DCATCH_BUILD_EXTRA_TESTS=${{matrix.examples}}
    
        - name: Build tests + lib
          working-directory: ${{runner.workspace}}/build
          run: make -j `sysctl -n hw.ncpu`
    
        - name: Run tests
          env:
              CTEST_OUTPUT_ON_FAILURE: 1
          working-directory: ${{runner.workspace}}/build
          run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu`