Skip to content

Commit

Permalink
Update build_CoLM_gnu.yml to use ubuntu 24.04 and 22.04
Browse files Browse the repository at this point in the history
docker images have been changed ubuntu-latest into ubuntu 24.04 LTS
  • Loading branch information
smartlixx committed Dec 17, 2024
1 parent 77e923b commit fc9e13e
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build_CoLM_gnu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, ubuntu-20.04]
os: [ubuntu-latest, ubuntu-22.04]
mpi: ['mpich', 'openmpi', 'intelmpi']
toolchain:
- {compiler: gcc, version: 14}
- {compiler: gcc, version: 13}
- {compiler: gcc, version: 12}
- {compiler: gcc, version: 11}
Expand All @@ -34,10 +35,17 @@ jobs:
# - os: ubuntu-latest
# toolchain: {compiler: gcc, version: 12}
exclude:
- os: ubuntu-20.04
toolchain: {compiler: gcc, version: 12}
- os: ubuntu-22.04
toolchain: {compiler: gcc, version: 14}
- mpi: 'mpich'
toolchain: {compiler: gcc, version: 9}
# mpich compiling FCFLAG has --fallow-type-mismatch, and will cause gfortran 9 failing
- os: ubuntu-latest
toolchain: {compiler: gcc, version: 9}
- os: ubuntu-latest
toolchain: {compiler: gcc, version: 10}
- os: ubuntu-latest
toolchain: {compiler: gcc, version: 11}

steps:
- uses: actions/checkout@v4
Expand All @@ -49,9 +57,9 @@ jobs:
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}
- name: Install netcdf-fortran library
- name: Install netcdf-fortran and blas library
shell: bash -l {0}
run: sudo apt update && sudo apt install -y netcdf-bin libnetcdf-dev libnetcdff-dev
run: sudo apt update && sudo apt install -y netcdf-bin libnetcdf-dev libnetcdff-dev "liblapack*" "libblas*"
- name: Test mpi
#run: mpif90 -v
run: which mpif90
Expand Down

0 comments on commit fc9e13e

Please sign in to comment.