-
Notifications
You must be signed in to change notification settings - Fork 25
191 lines (177 loc) · 7.73 KB
/
workflow.yml
File metadata and controls
191 lines (177 loc) · 7.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
name: Build Tests
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
# Do not run if the only files changed cannot affect the build
paths-ignore:
- "**.md"
- "**.json"
- "Python/**"
- ".github/CODEOWNERS"
- ".github/PULL_REQUEST_TEMPLATE.md"
- ".editorconfig"
concurrency:
# For PRs: one slot per PR number.
# For non-PR events (schedule, workflow_dispatch): one slot per ref.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check-ford-docs:
name: Build Ford Docs
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
filter: blob:none
- name: Build and Deploy Docs
uses: ./.github/actions/deploy-ford-docs
with:
# Due to a bug in ford, for now we do *not* want to use
# the full path to the ford input file. Rather, the
# action will cd into docs/Ford and then run ford
# relative path to the ford input file.
ford-input: ford-ci.md
doc-folder: docs/Ford/ci-doc
deploy-token: ${{ secrets.DOCS_DEPLOY_PAT }}
#####################################################################################
# build_test_mapl_gnu: #
# name: gfortran / ${{ matrix.cmake-build-type }} / ${{ matrix.cmake-generator }} #
# if: github.event.pull_request.draft == false #
# runs-on: ubuntu-latest #
# container: #
# image: gmao/ubuntu24-geos-env-mkl:v8.27.0-openmpi_5.0.5-gcc_14.2.0 #
# strategy: #
# fail-fast: false #
# matrix: #
# cmake-build-type: [Debug, Release] #
# cmake-generator: [Unix Makefiles] #
# env: #
# OMPI_ALLOW_RUN_AS_ROOT: 1 #
# OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 #
# OMPI_MCA_btl_vader_single_copy_mechanism: none #
# steps: #
# - name: Checkout #
# uses: actions/checkout@v6 #
# with: #
# fetch-depth: 1 #
# filter: blob:none #
# #
# - name: Build and Test MAPL #
# uses: ./.github/actions/ci-build-and-test-mapl #
# with: #
# cmake-build-type: ${{ matrix.cmake-build-type }} #
# cmake-generator: ${{ matrix.cmake-generator }} #
# fortran-compiler: gfortran #
# extra-cmake-args: -DMPIEXEC_PREFLAGS='--oversubscribe' #
#####################################################################################
build_test_mapl_gnu15:
name: gfortran-15 / ${{ matrix.cmake-build-type }} / ${{ matrix.cmake-generator }}
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
container:
image: gmao/ubuntu24-geos-env-mkl:v8.27.0-openmpi_5.0.5-gcc_15.2.0
strategy:
fail-fast: false
matrix:
cmake-build-type: [Debug, Release]
cmake-generator: [Unix Makefiles]
env:
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
OMPI_MCA_btl_vader_single_copy_mechanism: none
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 1
filter: blob:none
- name: Build and Test MAPL
uses: ./.github/actions/ci-build-and-test-mapl
with:
cmake-build-type: ${{ matrix.cmake-build-type }}
cmake-generator: ${{ matrix.cmake-generator }}
fortran-compiler: gfortran
extra-cmake-args: -DMPIEXEC_PREFLAGS='--oversubscribe'
build_test_mapl_ifort:
name: ifort / ${{ matrix.cmake-build-type }} / ${{ matrix.cmake-generator }}
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
container:
image: gmao/ubuntu24-geos-env:v8.27.0-intelmpi_2021.13-ifort_2021.13
strategy:
fail-fast: false
matrix:
cmake-build-type: [Debug, Release]
cmake-generator: [Unix Makefiles, Ninja]
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 1
filter: blob:none
- name: Build and Test MAPL
uses: ./.github/actions/ci-build-and-test-mapl
with:
cmake-build-type: ${{ matrix.cmake-build-type }}
cmake-generator: ${{ matrix.cmake-generator }}
fortran-compiler: ifort
build_test_mapl_ifx:
name: ifx / ${{ matrix.cmake-build-type }} / ${{ matrix.cmake-generator }}
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
container:
image: gmao/ubuntu24-geos-env:v8.27.0-intelmpi_2021.17-ifx_2025.3
strategy:
fail-fast: false
matrix:
cmake-build-type: [Debug, Release]
cmake-generator: [Unix Makefiles]
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 1
filter: blob:none
- name: Build and Test MAPL
uses: ./.github/actions/ci-build-and-test-mapl
with:
cmake-build-type: ${{ matrix.cmake-build-type }}
cmake-generator: ${{ matrix.cmake-generator }}
fortran-compiler: ifx
build_test_mapl_ifort_no_optional:
name: ifort / Debug / no pFlogger+fArgParse+pFUnit
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
container:
image: gmao/ubuntu24-geos-env:v8.27.0-intelmpi_2021.13-ifort_2021.13
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 1
filter: blob:none
- name: Build MAPL without optional packages
uses: ./.github/actions/ci-build-and-test-mapl
with:
cmake-build-type: Debug
cmake-generator: Unix Makefiles
fortran-compiler: ifort
extra-cmake-args: -DBUILD_WITH_PFLOGGER=OFF -DBUILD_WITH_FARGPARSE=OFF -DBUILD_WITH_PFUNIT=OFF
skip-tests: "true"
build_gcm:
if: github.event.pull_request.draft == false
strategy:
fail-fast: false
matrix:
compiler: [ifort, ifx, gfortran-14, gfortran-15]
build-type: [Debug]
uses: GEOS-ESM/CI-workflows/.github/workflows/geosgcm_build_tests.yml@project/geosgcm
with:
compiler: ${{ matrix.compiler }}
cmake-build-type: ${{ matrix.build-type }}
fixture-repo: GEOS-ESM/GEOSgcm
fixture-ref: release/MAPL-v3
run-mepo-develop: false