4
4
# On push, only run if any of the metapackage files has changed
5
5
push :
6
6
paths :
7
- - ' src/*meta*.f90'
7
+ - ' src/*meta*.f90'
8
8
- ' src/fpm/*meta*.f90'
9
9
- ' src/fpm/manifest/*meta*.f90'
10
10
- ' src/ci/meta_tests.sh'
11
11
- ' src/.github/workflows/meta.yml'
12
- # Always run on PR or release
12
+ # Always run on PR or release
13
13
pull_request :
14
14
release :
15
15
types : [published]
16
16
# Allow manual triggering
17
- workflow_dispatch :
17
+ workflow_dispatch :
18
18
19
19
env :
20
20
CI : " ON" # We can detect this in the build system and other vendors implement it
51
51
52
52
- name : (Ubuntu/macOS) setup gcc version
53
53
if : contains(matrix.os,'ubuntu') || contains(matrix.os,'macos')
54
- run : |
54
+ run : |
55
55
echo "GCC_V=14" >> $GITHUB_ENV
56
56
57
57
- name : (Windows) Install MSYS2
84
84
Remove-Item "oneAPI" -Force -Recurse
85
85
86
86
- name : (Ubuntu) Install gfortran
87
- if : contains(matrix.os,'ubuntu')
87
+ if : contains(matrix.os,'ubuntu')
88
88
run : |
89
89
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
90
90
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
@@ -115,16 +115,16 @@ jobs:
115
115
uses :
fortran-lang/[email protected]
116
116
id : setup-fortran
117
117
with :
118
- compiler : intel
119
- version : 2024.1.0
118
+ compiler : intel
119
+ version : 2024.1.0
120
120
121
- - name : (Ubuntu) finalize oneAPI environment
121
+ - name : (Ubuntu) finalize oneAPI environment
122
122
if : contains(matrix.os,'ubuntu') && contains(matrix.mpi,'intel')
123
123
run : |
124
124
# Install MPI
125
125
sudo apt-get install -y -q intel-oneapi-mpi-devel ninja-build cmake
126
126
source /opt/intel/oneapi/setvars.sh --force
127
- printenv >> $GITHUB_ENV
127
+ printenv >> $GITHUB_ENV
128
128
# To run HDF5 with oneAPI, we need to build it from source. Use CMake to generate pkg-config info
129
129
curl -O -L https://github.com/HDFGroup/hdf5/archive/refs/tags/snapshot-1.14.tar.gz
130
130
tar zxf snapshot-1.14.tar.gz
@@ -214,8 +214,8 @@ jobs:
214
214
215
215
- name : (macOS) Install homebrew HDF5
216
216
if : contains(matrix.os,'macos')
217
- run : |
218
- brew install hdf5
217
+ run : |
218
+ brew install hdf5
219
219
220
220
# Phase 1: Bootstrap fpm with existing version
221
221
- name : Install fpm
@@ -229,8 +229,8 @@ jobs:
229
229
mv $(which fpm) fpm-bootstrap${{ matrix.exe }}
230
230
echo "BOOTSTRAP=$PWD/fpm-bootstrap" >> $GITHUB_ENV
231
231
232
- - name : (macOS) Use gcc/g++ instead of Clang for C/C++ to build fpm
233
- if : contains(matrix.os,'macOS')
232
+ - name : (macOS/Ubuntu ) Use gcc/g++ instead of Clang for C/C++ / ifx to build fpm
233
+ if : contains(matrix.os,'macOS') || contains(matrix.os,'ubuntu')
234
234
shell : bash
235
235
run : |
236
236
echo "FPM_FC=gfortran-${{ env.GCC_V }}" >> $GITHUB_ENV
0 commit comments