ifx compiler #8
Workflow file for this run
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: Ubuntu | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| strategy: | |
| matrix: | |
| compiler: | |
| - { cpp: g++-12, c: gcc-12} | |
| - { cpp: g++-13, c: gcc-13} | |
| - { cpp: g++-14, c: gcc-14} | |
| build_type: [Release, Debug] | |
| enable_netcdf: [ON, OFF] | |
| env: | |
| CC: ${{ matrix.compiler.c }} | |
| CXX: ${{ matrix.compiler.cpp }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake gfortran libnetcdf-dev netcdf-bin libnetcdff-dev liblapack-dev liblapacke-dev | |
| sudo apt-get install -y libblas-dev valgrind | |
| - name: Run Cmake | |
| run: cmake -S . -B build -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -D CARMA_ENABLE_NETCDF=${{ matrix.enable_netcdf }} -D CARMA_ENABLE_MEMCHECK=ON -D CMAKE_POLICY_VERSION_MINIMUM=3.5 -D CMAKE_Fortran_FLAGS="-ffree-line-length-none" | |
| - name: Build | |
| run: cmake --build build --config ${{ matrix.build_type }} | |
| - name: Run tests | |
| run: | | |
| cd build | |
| ctest -C ${{ matrix.build_type }} --rerun-failed --output-on-failure . --verbose |