Skip to content

Commit

Permalink
Merge pull request #2977 from boutproject/bump-ci-images
Browse files Browse the repository at this point in the history
CI: Bump all ubuntu images
  • Loading branch information
bendudson authored Oct 23, 2024
2 parents 608c7b5 + 97f4510 commit 3679e31
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- ${{ github.event_name == 'cron' }}
config:
- name: "CMake, PETSc unreleased, ADIOS2"
os: ubuntu-20.04
os: ubuntu-24.04
cmake_options: "-DBUILD_SHARED_LIBS=ON
-DBOUT_ENABLE_METRIC_3D=ON
-DBOUT_ENABLE_OPENMP=ON
Expand All @@ -58,13 +58,13 @@ jobs:
build_adios2: true
on_cron: true

- name: "Default options, Ubuntu 20.04"
os: ubuntu-20.04
- name: "Default options, Ubuntu 22.04"
os: ubuntu-22.04
cmake_options: ""
on_cron: false

- name: "Optimised, static"
os: ubuntu-20.04
os: ubuntu-latest
cmake_options: "-DCHECK=0
-DBUILD_SHARED_LIBS=OFF
-DCMAKE_CXX_FLAGS=-Ofast
Expand All @@ -78,7 +78,7 @@ jobs:
on_cron: false

- name: "Debug, shared"
os: ubuntu-20.04
os: ubuntu-latest
cmake_options: "-DCHECK=3
-DCMAKE_BUILD_TYPE=Debug
-DBOUT_ENABLE_SIGNAL=ON
Expand All @@ -89,8 +89,8 @@ jobs:
-DSUNDIALS_ROOT=/home/runner/local"
on_cron: false

- name: "Shared, release, Ubuntu 20.04"
os: ubuntu-20.04
- name: "Shared, release"
os: ubuntu-latest
cmake_options: "-DBUILD_SHARED_LIBS=ON
-DBOUT_ENABLE_OPENMP=ON
-DCMAKE_BUILD_TYPE=Release
Expand All @@ -116,7 +116,7 @@ jobs:
on_cron: false

- name: "CMake, new PETSc"
os: ubuntu-20.04
os: ubuntu-latest
cmake_options: "-DBUILD_SHARED_LIBS=ON
-DBOUT_ENABLE_METRIC_3D=ON
-DBOUT_ENABLE_OPENMP=ON
Expand All @@ -131,7 +131,7 @@ jobs:
on_cron: false

- name: "Coverage"
os: ubuntu-20.04
os: ubuntu-latest
cmake_options: "-DBUILD_SHARED_LIBS=ON
-DCMAKE_BUILD_TYPE=Debug
-DCHECK=3
Expand Down
11 changes: 9 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,15 @@ foreach (flag ${CONFIG_LDFLAGS_LIST})
# message("${flag} is a file")
set(_CONFIG_LDFLAGS "${_CONFIG_LDFLAGS} ${flag}")
else()
message("Fixing ${flag} to -l${flag}")
set(_CONFIG_LDFLAGS "${_CONFIG_LDFLAGS} -l${flag}")
string(FIND "${flag}" "::" hascolcol)
if (${hascolcol} EQUAL -1)
message("Fixing ${flag} to -l${flag}")
set(_CONFIG_LDFLAGS "${_CONFIG_LDFLAGS} -l${flag}")
else()
string(REGEX MATCH "[^:]*$" flag2 "${flag}")
message("Fixing ${flag} to -l${flag2}")
set(_CONFIG_LDFLAGS "${_CONFIG_LDFLAGS} -l${flag2}")
endif()
endif()
endif()
endforeach()
Expand Down

0 comments on commit 3679e31

Please sign in to comment.