Skip to content

Commit 2aa28cc

Browse files
authored
Merge pull request #14965 from marcfehling/cmake-macos
github-actions: macos changes
2 parents 305ee1f + b0320f9 commit 2aa28cc

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.github/workflows/cmake.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ jobs:
109109
if: startsWith(matrix.compiler_mpi, 'intel_')
110110
shell: bash
111111
run: |
112-
echo "CC=mpiicx" >> $GITHUB_ENV
113-
echo "CXX=mpiicx" >> $GITHUB_ENV
114-
echo "FC=mpiifx" >> $GITHUB_ENV
112+
echo "CC=icx" >> $GITHUB_ENV
113+
echo "CXX=icpx" >> $GITHUB_ENV
114+
echo "FC=ifx" >> $GITHUB_ENV
115115
116116
- name: build fds
117117
if: endsWith(matrix.compiler_mpi, '_intelmpi')
@@ -148,7 +148,6 @@ jobs:
148148
ctest --test-dir builddir -j --output-on-failure -V
149149
150150
cmake-osx:
151-
if: false
152151
# Set the name of this build, variable depending on the OS
153152
name: ${{ matrix.os }} ${{ matrix.compiler_mpi }} openmp=${{ matrix.openmp }} ${{ matrix.build_type }}
154153
strategy:
@@ -157,7 +156,7 @@ jobs:
157156
# and build configurations
158157
matrix:
159158
os:
160-
- macos-latest
159+
- macos-14
161160
compiler_mpi:
162161
- "gnu_openmpi"
163162
openmp:
@@ -172,7 +171,7 @@ jobs:
172171
uses: actions/checkout@v4
173172

174173
- name: install openmpi
175-
run: brew install open-mpi
174+
run: brew install gcc@15 open-mpi
176175

177176
- name: set macos gcc
178177
if: startsWith(matrix.compiler_mpi, 'gnu_')
@@ -181,6 +180,8 @@ jobs:
181180
echo "CC=gcc-15" >> $GITHUB_ENV
182181
echo "CXX=g++-15" >> $GITHUB_ENV
183182
echo "FC=gfortran-15" >> $GITHUB_ENV
183+
echo "OMPI_CC=gcc-15" >> $GITHUB_ENV
184+
echo "OMPI_CXX=g++-15" >> $GITHUB_ENV
184185
echo "OMPI_FC=gfortran-15" >> $GITHUB_ENV
185186
brew install glew gd zlib json-c
186187
@@ -189,9 +190,11 @@ jobs:
189190
shell: bash
190191
run: |
191192
echo "CC=icx" >> $GITHUB_ENV
192-
echo "CXX=icx" >> $GITHUB_ENV
193-
echo "FC=mpiifx" >> $GITHUB_ENV
194-
echo "OMPI_FC=mpiifx" >> $GITHUB_ENV
193+
echo "CXX=icpx" >> $GITHUB_ENV
194+
echo "FC=ifx" >> $GITHUB_ENV
195+
echo "OMPI_CC=icx" >> $GITHUB_ENV
196+
echo "OMPI_CXX=icpx" >> $GITHUB_ENV
197+
echo "OMPI_FC=ifx" >> $GITHUB_ENV
195198
196199
- name: Build
197200
if: startsWith(matrix.compiler_mpi, 'gnu_')
@@ -221,7 +224,7 @@ jobs:
221224
cmake-windows:
222225
# build on windows using ifort with intelmpi and mkl based on
223226
# https://github.com/oneapi-src/oneapi-ci
224-
if: false
227+
225228
name: windows ${{matrix.compiler}} intelmpi openmp=${{ matrix.openmp }} ${{ matrix.build_type }}
226229
runs-on: [windows-latest]
227230
strategy:

.github/workflows/osx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
# debug build on osx using gfortran with openmpi
2929

3030
name: osx gnu openmpi
31-
runs-on: [macos-latest]
31+
runs-on: [macos-14]
3232
defaults:
3333
run:
3434
shell: bash
@@ -37,7 +37,7 @@ jobs:
3737
- uses: actions/checkout@v4
3838
- name: install openmpi
3939
run: |
40-
brew install open-mpi
40+
brew install gcc@15 open-mpi
4141
echo "OMPI_FC=gfortran-15" >> $GITHUB_ENV
4242
4343
- name: build fds debug

0 commit comments

Comments
 (0)