Skip to content

Commit 74f5f90

Browse files
authored
limit Intel Classic CI to Ubuntu 22.04 (#925)
2 parents 6ec8cd0 + 07dd414 commit 74f5f90

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.github/workflows/CI.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@ jobs:
2525
- {compiler: gcc, version: 11}
2626
- {compiler: gcc, version: 12}
2727
- {compiler: gcc, version: 13}
28-
- {compiler: intel, version: '2024.1'}
29-
- {compiler: intel-classic, version: '2021.9'}
30-
build: [cmake]
28+
- {compiler: intel, version: '2024.1'}
29+
build: [cmake]
3130
include:
31+
- os: ubuntu-22.04
32+
build: cmake
33+
toolchain: {compiler: intel-classic, version: '2021.10'}
3234
- os: ubuntu-latest
3335
build: cmake-inline
34-
toolchain:
35-
- {compiler: gcc, version: 10}
36+
toolchain: {compiler: gcc, version: 10}
3637
exclude:
37-
- os: macos-13
38-
toolchain: {compiler: intel-classic, version: '2021.9'}
3938
- os: macos-13
4039
toolchain: {compiler: intel, version: '2024.1'}
4140
- os: macos-13
@@ -56,7 +55,7 @@ jobs:
5655
run: pip install --upgrade fypp ninja
5756

5857
- name: Setup Fortran compiler
59-
uses: fortran-lang/[email protected].1
58+
uses: fortran-lang/[email protected].2
6059
id: setup-fortran
6160
with:
6261
compiler: ${{ matrix.toolchain.compiler }}

test/hash_functions/CMakeLists.txt

+10-1
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,22 @@ target_sources(
1414
waterhash.c
1515
generate_hash_arrays.cpp
1616
)
17+
1718
if(CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")
19+
20+
# Set the C++ standard to prevent icpc breakage
21+
set(CMAKE_CXX_STANDARD 11)
22+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
23+
set(CMAKE_CXX_EXTENSIONS OFF)
24+
1825
set_target_properties(test_hash_functions PROPERTIES LINKER_LANGUAGE Fortran)
1926
endif()
27+
2028
if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU AND CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 10.0)
2129
target_compile_options(
2230
test_hash_functions
2331
PRIVATE
2432
$<$<COMPILE_LANGUAGE:Fortran>:-fno-range-check>
25-
)
33+
)
2634
endif()
35+

0 commit comments

Comments
 (0)