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

linux-meson-builds.yml

Blame
  • linux-meson-builds.yml 1.12 KiB
    name: Linux builds (meson)
    
    on: [push, pull_request]
    
    jobs:
      build:
        name: meson ${{matrix.cxx}}, C++${{matrix.std}}, ${{matrix.build_type}}
        runs-on: ubuntu-22.04
        strategy:
          matrix:
            cxx:
              - g++-11
              - clang++-11
            build_type: [debug, release]
            std: [14, 17]
            include:
              - cxx: clang++-11
                other_pkgs: clang-11
    
        steps:
        - uses: actions/checkout@v4
    
        - name: Prepare environment
          run: |
            sudo apt-get update
            sudo apt-get install -y meson ninja-build ${{matrix.other_pkgs}}
    
        - name: Configure build
          env:
            CXX: ${{matrix.cxx}}
            CXXFLAGS: -std=c++${{matrix.std}} ${{matrix.cxxflags}}
          # Note: $GITHUB_WORKSPACE is distinct from ${{runner.workspace}}.
          #       This is important
          run: |
            meson -Dbuildtype=${{matrix.build_type}} ${{runner.workspace}}/meson-build
    
        - name: Build tests + lib
          working-directory: ${{runner.workspace}}/meson-build
          run: ninja
    
        - name: Run tests
          working-directory: ${{runner.workspace}}/meson-build
          run: |
            meson test --verbose