Skip to content

Commit f3d930d

Browse files
committed
Update CI
1 parent f2ced44 commit f3d930d

File tree

4 files changed

+23
-300
lines changed

4 files changed

+23
-300
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
# Anchors in case we need to override the defaults from the orb
4-
#baselibs_version: &baselibs_version v7.33.0
4+
#baselibs_version: &baselibs_version v8.20.0
55
#bcs_version: &bcs_version v11.6.0
66

77
orbs:

.github/workflows/enforce-labels.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,26 @@ jobs:
88
require-label:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: mheap/github-action-required-labels@v2
11+
- uses: mheap/github-action-required-labels@v5
1212
env:
1313
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1414
with:
1515
mode: minimum
1616
count: 1
17-
labels: "0 diff,0 diff trivial,Non 0-diff,0 diff structural,0-diff trivial,Not 0-diff,0-diff,automatic,0-diff uncoupled"
17+
labels: "0 diff,0 diff trivial,Non 0-diff,0 diff structural,0-diff trivial,Not 0-diff,0-diff,automatic,0-diff uncoupled,github_actions"
1818
add_comment: true
19+
message: "This PR is being prevented from merging because you have not added one of our required labels: {{ provided }}. Please add one so that the PR can be merged."
20+
1921
blocking-label:
2022
runs-on: ubuntu-latest
2123
steps:
22-
- uses: mheap/github-action-required-labels@v2
24+
- uses: mheap/github-action-required-labels@v5
2325
env:
2426
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2527
with:
2628
mode: exactly
2729
count: 0
2830
labels: "Contingent - DNA,Needs Lead Approval,Contingent -- Do Not Approve"
2931
add_comment: true
32+
message: "This PR is being prevented from merging because you have added one of our blocking labels: {{ provided }}. You'll need to remove it before this PR can be merged."
33+

.github/workflows/spack-ci.yml

Lines changed: 0 additions & 218 deletions
This file was deleted.

.github/workflows/workflow.yml

Lines changed: 15 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -17,90 +17,27 @@ concurrency:
1717

1818
jobs:
1919
build_gcm:
20-
name: Build GEOSgcm
21-
if: "!contains(github.event.pull_request.labels.*.name, '0 diff trivial')"
22-
runs-on: ubuntu-24.04
23-
container:
24-
image: gmao/ubuntu24-geos-env:v7.33.0-intelmpi_2021.13-ifort_2021.13
25-
# Per https://github.com/actions/virtual-environments/issues/1445#issuecomment-713861495
26-
# It seems like we might not need secrets on GitHub Actions which is good for forked
27-
# pull requests
28-
#credentials:
29-
#username: ${{ secrets.DOCKERHUB_USERNAME }}
30-
#password: ${{ secrets.DOCKERHUB_TOKEN }}
31-
32-
env:
33-
OMPI_ALLOW_RUN_AS_ROOT: 1
34-
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
35-
OMPI_MCA_btl_vader_single_copy_mechanism: none
36-
37-
steps:
38-
# https://github.com/orgs/community/discussions/25678#discussioncomment-5242449
39-
- name: Delete huge unnecessary tools folder
40-
run: rm -rf /opt/hostedtoolcache
41-
42-
- name: Checkout GCM
43-
uses: actions/checkout@v4
44-
with:
45-
fetch-depth: 1
46-
filter: blob:none
47-
repository: GEOS-ESM/GEOSgcm
48-
ref: release/MAPL-v3
49-
50-
- name: Set all directories as git safe
51-
run: |
52-
git config --global --add safe.directory '*'
53-
54-
- name: Versions etc.
55-
run: |
56-
ifort --version
57-
mpirun --version
58-
echo $BASEDIR
59-
60-
- name: Mepo clone external repos
61-
run: |
62-
mepo clone --partial blobless
63-
mepo status
64-
65-
#######################################################################
66-
# - name: Mepo develop usual suspects #
67-
# run: | #
68-
# mepo develop GEOSgcm_GridComp GEOSgcm_App GMAO_Shared GEOS_Util #
69-
# mepo status #
70-
#######################################################################
71-
72-
- name: Update other branches
73-
if: ${{ github.event.pull_request.head.ref != 'main' && github.event.pull_request.head.ref != 'develop' }}
74-
run: |
75-
mepo checkout-if-exists ${GITHUB_HEAD_REF}
76-
mepo status
77-
78-
- name: CMake
79-
run: |
80-
cmake -B build -S . --install-prefix=${pwd}/install -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_BUILD_TYPE=Debug -DMPIEXEC_PREFLAGS='--oversubscribe' -DUSE_F2PY=OFF
81-
82-
- name: Build
83-
run: |
84-
cmake --build build --parallel 4
85-
cmake --install build
20+
strategy:
21+
matrix:
22+
compiler: [ifort, gfortran-14, gfortran-15]
23+
build-type: [Debug]
24+
uses: GEOS-ESM/CI-workflows/.github/workflows/geosgcm_build_tests.yml@project/geosgcm
25+
with:
26+
compiler: ${{ matrix.compiler }}
27+
cmake-build-type: ${{ matrix.build-type }}
28+
29+
spack_build:
30+
uses: GEOS-ESM/CI-workflows/.github/workflows/spack_gcc_build.yml@project/geosgcm
31+
secrets:
32+
BUILDCACHE_USERNAME: ${{ secrets.BUILDCACHE_USERNAME }}
33+
BUILDCACHE_TOKEN: ${{ secrets.BUILDCACHE_TOKEN }}
8634

8735
build_gocart:
8836
name: Build GOCART
8937
if: "!contains(github.event.pull_request.labels.*.name, '0 diff trivial')"
9038
runs-on: ubuntu-24.04
9139
container:
92-
image: gmao/ubuntu24-geos-env:v7.33.0-intelmpi_2021.13-ifort_2021.13
93-
# Per https://github.com/actions/virtual-environments/issues/1445#issuecomment-713861495
94-
# It seems like we might not need secrets on GitHub Actions which is good for forked
95-
# pull requests
96-
#credentials:
97-
#username: ${{ secrets.DOCKERHUB_USERNAME }}
98-
#password: ${{ secrets.DOCKERHUB_TOKEN }}
99-
100-
env:
101-
OMPI_ALLOW_RUN_AS_ROOT: 1
102-
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
103-
OMPI_MCA_btl_vader_single_copy_mechanism: none
40+
image: gmao/ubuntu24-geos-env:v8.20.0-intelmpi_2021.13-ifort_2021.13
10441

10542
steps:
10643
# https://github.com/orgs/community/discussions/25678#discussioncomment-5242449

0 commit comments

Comments
 (0)