@@ -3,38 +3,38 @@ on: push
33jobs :
44 gfortran :
55 strategy :
6- matrix :
7- version : [9, 10, 11, 12]
8- os : ["ubuntu-latest"]
9- include :
10- - version : 7
11- os : ubuntu-20.04
12- - version : 8
13- os : ubuntu-20.04
14- cmake_args : -DFABM_USE_CONTIGUOUS=OFF
15- - version : 13
16- os : ubuntu-24.04
17- - version : 14
18- os : ubuntu-24.04
19- fail-fast : false
6+ matrix :
7+ version : [9, 10, 11, 12]
8+ os : ["ubuntu-latest"]
9+ include :
10+ # - version: 7
11+ # os: ubuntu-20.04
12+ # - version: 8
13+ # os: ubuntu-20.04
14+ # cmake_args: -DFABM_USE_CONTIGUOUS=OFF
15+ - version : 13
16+ os : ubuntu-24.04
17+ - version : 14
18+ os : ubuntu-24.04
19+ fail-fast : false
2020 runs-on : ${{ matrix.os }}
2121 steps :
22- - name : Install compiler
23- run : |
22+ - name : Install compiler
23+ run : |
2424 sudo apt-get update
2525 sudo apt-get install gfortran-${{ matrix.version }}
26- - name : Clone gotm
27- uses : actions/checkout@v4
28- with :
26+ - name : Clone gotm
27+ uses : actions/checkout@v4
28+ with :
2929 path : gotm
3030 submodules : recursive
31- - name : Clone gotm-cases
32- uses : actions/checkout@v4
33- with :
31+ - name : Clone gotm-cases
32+ uses : actions/checkout@v4
33+ with :
3434 path : cases
3535 repository : gotm-model/cases
36- - name : Build and run all test cases
37- run : python3 cases/scripts/run_all.py --show_logs --gotm_base=gotm --exclude plume --compiler=gfortran-${{ matrix.version }} -DGOTM_USE_STIM=ON -DGOTM_USE_SEAGRASS=ON -DGOTM_USE_NetCDF=OFF ${{ matrix.cmake_args }}
36+ - name : Build and run all test cases
37+ run : python3 cases/scripts/run_all.py --show_logs --gotm_base=gotm --exclude plume --compiler=gfortran-${{ matrix.version }} -DGOTM_USE_STIM=ON -DGOTM_USE_SEAGRASS=ON -DGOTM_USE_NetCDF=OFF ${{ matrix.cmake_args }}
3838 conda-forge :
3939 strategy :
4040 fail-fast : false
@@ -45,22 +45,22 @@ jobs:
4545 shell : bash -el {0}
4646 runs-on : ${{ matrix.os }}
4747 steps :
48- - uses : conda-incubator/setup-miniconda@v3
49- with :
50- auto-update-conda : true
51- - name : Clone gotm
52- uses : actions/checkout@v4
53- with :
48+ - uses : conda-incubator/setup-miniconda@v3
49+ with :
50+ auto-update-conda : true
51+ - name : Clone gotm
52+ uses : actions/checkout@v4
53+ with :
5454 submodules : recursive
55- - name : Install conda packages (Linux, Mac)
56- if : matrix.os != 'windows-latest'
57- run : conda install -c conda-forge fortran-compiler netcdf-fortran
58- - name : Install conda packages (Windows)
59- if : matrix.os == 'windows-latest'
60- run : |
61- conda install -c conda-forge m2w64-gcc-fortran m2w64-make netcdf-fortran
62- echo "CMAKE_GENERATOR=MinGW Makefiles" >> "$GITHUB_ENV"
63- - name : build
64- run : |
65- cmake -B build -S . -DGOTM_USE_STIM=ON -DGOTM_USE_SEAGRASS=ON -DCMAKE_BUILD_TYPE=Release
66- cmake --build build --config Release
55+ - name : Install conda packages (Linux, Mac)
56+ if : matrix.os != 'windows-latest'
57+ run : conda install -c conda-forge fortran-compiler netcdf-fortran
58+ - name : Install conda packages (Windows)
59+ if : matrix.os == 'windows-latest'
60+ run : |
61+ conda install -c conda-forge m2w64-gcc-fortran m2w64-make netcdf-fortran
62+ echo "CMAKE_GENERATOR=MinGW Makefiles" >> "$GITHUB_ENV"
63+ - name : build
64+ run : |
65+ cmake -B build -S . -DGOTM_USE_STIM=ON -DGOTM_USE_SEAGRASS=ON -DCMAKE_BUILD_TYPE=Release
66+ cmake --build build --config Release
0 commit comments