Skip to content

Commit 9dcc150

Browse files
committed
Merge branch 'release/8.9.0'
2 parents cc31a23 + 3b390ac commit 9dcc150

File tree

1,437 files changed

+11613
-5414
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,437 files changed

+11613
-5414
lines changed

.github/workflows/api-change.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
tag1:
77
description: 'First ESMF Tag'
88
required: true
9-
default: 'v8.7.0'
9+
default: 'v8.8.0'
1010
tag2:
1111
description: 'Second ESMF Tag'
1212
required: true
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222

2323
- name: Checkout Dockerfiles
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525
with:
2626
repository: esmf-org/esmf-containers
2727
path: esmf-containers
@@ -41,7 +41,7 @@ jobs:
4141
docker rm ${CID}
4242
4343
- name: Upload artifacts
44-
uses: actions/upload-artifact@v3
44+
uses: actions/upload-artifact@v4
4545
with:
4646
name: api-change
4747
path: ${{ github.workspace }}/artifacts
Lines changed: 115 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,83 @@
1-
name: Build ESMF Docs
1+
name: ESMF Docs
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
publish:
7+
description: 'Publish Documentation'
8+
required: true
9+
type: boolean
10+
default: true
11+
enable-esmf-docs:
12+
description: 'Enable ESMF Docs'
13+
required: true
14+
type: boolean
15+
default: true
16+
enable-esmpy-docs:
17+
description: 'Enable ESMPy Docs'
18+
required: true
19+
type: boolean
20+
default: true
521
push:
22+
pull_request:
23+
branches:
24+
- develop
625

7-
concurrency:
26+
concurrency:
827
group: build-esmf-docs-${{ github.ref_name }}
928
cancel-in-progress: true
1029

1130
jobs:
1231

13-
build:
14-
32+
esmf-docs:
33+
if: ${{github.event_name != 'workflow_dispatch' || inputs.enable-esmf-docs}}
1534
runs-on: ubuntu-latest
16-
1735
steps:
18-
1936
- name: Checkout Dockerfiles
20-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
2138
with:
2239
repository: esmf-org/esmf-containers
2340
path: esmf-containers
2441
ref: main
25-
26-
- name: Build Docker image
27-
run: |
42+
- name: Build Docker image
43+
env:
44+
PR: ${{contains(fromJSON('["pull_request","pull_request_target"]'), github.event_name)}}
45+
run: |
2846
cd ${{ github.workspace }}/esmf-containers/build-esmf-docs/esmf
29-
docker build . --tag esmf/build-esmf-docs --build-arg ESMF_BRANCH="${{ github.ref_name }}" --no-cache
30-
47+
if ${PR} ; then
48+
docker build . --tag esmf/build-esmf-docs \
49+
--build-arg "ESMF_REPOSITORY=${{github.server_url}}/${{github.repository}}" \
50+
--build-arg "ESMF_BRANCH=${{github.ref}}" \
51+
--no-cache
52+
else
53+
docker build . --tag esmf/build-esmf-docs \
54+
--build-arg "ESMF_REPOSITORY=${{github.server_url}}/${{github.repository}}" \
55+
--build-arg "ESMF_BRANCH=${{github.ref_name}}" \
56+
--no-cache
57+
fi
3158
- name: Extract artifacts
3259
run: |
3360
mkdir -p ${{ github.workspace }}/artifacts
3461
CID=$(docker run -dit --name runner esmf/build-esmf-docs)
3562
docker cp ${CID}:/artifacts/doc-artifacts.zip ${{ github.workspace }}/artifacts
3663
docker stop ${CID}
37-
docker rm ${CID}
38-
64+
docker rm ${CID}
3965
- name: Upload artifacts
40-
uses: actions/upload-artifact@v3
66+
uses: actions/upload-artifact@v4
4167
with:
4268
name: esmf-docs
4369
path: ${{ github.workspace }}/artifacts
44-
4570
- name: Checkout esmf-org.github.io
46-
uses: actions/checkout@v3
71+
if: ${{github.repository_owner == 'esmf-org' && (github.event_name == 'push' || inputs.publish)}}
72+
uses: actions/checkout@v4
4773
with:
4874
repository: esmf-org/esmf-org.github.io
4975
path: ${{github.workspace}}/esmf-org.github.io
5076
ssh-key: ${{secrets.ESMF_WEB_DEPLOY_KEY}}
51-
52-
- name: Copy docs
53-
run: |
54-
cd ${{ github.workspace }}/esmf-org.github.io
77+
- name: Prepare docs for publication
78+
if: ${{github.repository_owner == 'esmf-org' && (github.event_name == 'push' || inputs.publish)}}
79+
run: |
80+
cd ${{ github.workspace }}/esmf-org.github.io
5581
mkdir -p docs/nightly/${{ github.ref_name }}/dev_guide
5682
cd ${{ github.workspace }}/artifacts
5783
unzip doc-artifacts.zip
@@ -62,14 +88,79 @@ jobs:
6288
cp -rf NUOPC_refdoc.pdf ${{ github.workspace }}/esmf-org.github.io/docs/nightly/${{ github.ref_name }}/
6389
cp -rf NUOPC_howtodoc ${{ github.workspace }}/esmf-org.github.io/docs/nightly/${{ github.ref_name }}/
6490
cp -rf NUOPC_howtodoc.pdf ${{ github.workspace }}/esmf-org.github.io/docs/nightly/${{ github.ref_name }}/
65-
cd ${{ github.workspace }}/artifacts/artifacts/doc-dev_guide
91+
cd ${{ github.workspace }}/artifacts/artifacts/doc-dev_guide
6692
cp -rf ./dev_guide/dev_guide/* ${{ github.workspace }}/esmf-org.github.io/docs/nightly/${{ github.ref_name }}/dev_guide/
67-
6893
- name: Commit and publish docs
69-
run: |
94+
if: ${{github.repository_owner == 'esmf-org' && (github.event_name == 'push' || inputs.publish)}}
95+
run: |
7096
cd ${{ github.workspace }}/esmf-org.github.io
7197
git config user.name "github-actions[bot]"
7298
git config user.email "github-actions[bot]@users.noreply.github.com"
7399
git add .
74100
git diff-index --quiet HEAD || git commit --message "Publish ESMF Docs"
75101
git push origin
102+
103+
esmpy-docs:
104+
if: ${{github.event_name != 'workflow_dispatch' || inputs.enable-esmpy-docs}}
105+
runs-on: ubuntu-latest
106+
steps:
107+
- name: Checkout Dockerfiles
108+
uses: actions/checkout@v4
109+
with:
110+
repository: esmf-org/esmf-containers
111+
path: esmf-containers
112+
ref: main
113+
- name: Build Docker image
114+
env:
115+
PR: ${{contains(fromJSON('["pull_request","pull_request_target"]'), github.event_name)}}
116+
run: |
117+
cd ${{ github.workspace }}/esmf-containers/build-esmf-docs/esmpy
118+
if ${PR} ; then
119+
docker build . --tag esmf/build-esmpy-docs \
120+
--build-arg "ESMF_REPOSITORY=${{github.server_url}}/${{github.repository}}" \
121+
--build-arg "ESMF_BRANCH=${{github.ref}}" \
122+
--no-cache
123+
else
124+
docker build . --tag esmf/build-esmpy-docs \
125+
--build-arg "ESMF_REPOSITORY=${{github.server_url}}/${{github.repository}}" \
126+
--build-arg "ESMF_BRANCH=${{github.ref_name}}" \
127+
--no-cache
128+
fi
129+
- name: Copy artifacts
130+
run: |
131+
mkdir -p ${{ github.workspace }}/artifacts
132+
CID=$(docker run -dit --name runner esmf/build-esmpy-docs)
133+
docker cp ${CID}:/artifacts/doc-esmpy.zip ${{ github.workspace }}/artifacts
134+
docker stop ${CID}
135+
docker rm ${CID}
136+
- name: Upload artifacts
137+
uses: actions/upload-artifact@v4
138+
with:
139+
name: esmpy-docs
140+
path: ${{ github.workspace }}/artifacts
141+
- name: Checkout esmpy_doc
142+
if: ${{github.repository_owner == 'esmf-org' && (github.event_name == 'push' || inputs.publish)}}
143+
uses: actions/checkout@v4
144+
with:
145+
repository: esmf-org/esmpy_doc
146+
path: ${{github.workspace}}/esmpy_doc
147+
ssh-key: ${{secrets.ESMPY_WEB_DEPLOY_KEY}}
148+
- name: Prepare docs for publication
149+
if: ${{github.repository_owner == 'esmf-org' && (github.event_name == 'push' || inputs.publish)}}
150+
run: |
151+
cd ${{ github.workspace }}/esmpy_doc
152+
mkdir -p docs/nightly/${{ github.ref_name }}
153+
cd ${{ github.workspace }}/artifacts
154+
unzip doc-esmpy.zip
155+
cd ${{ github.workspace }}/artifacts/doc-esmpy/esmpy_doc
156+
cp -rf html ${{ github.workspace }}/esmpy_doc/docs/nightly/${{ github.ref_name }}/
157+
cp -rf latex/ESMPy.pdf ${{ github.workspace }}/esmpy_doc/docs/nightly/${{ github.ref_name }}/
158+
- name: Commit and publish docs
159+
if: ${{github.repository_owner == 'esmf-org' && (github.event_name == 'push' || inputs.publish)}}
160+
run: |
161+
cd ${{ github.workspace }}/esmpy_doc
162+
git config user.name "github-actions[bot]"
163+
git config user.email "github-actions[bot]@users.noreply.github.com"
164+
git add .
165+
git diff-index --quiet HEAD || git commit --message "Publish ESMPy Docs"
166+
git push origin

.github/workflows/build-esmpy-docs.yml

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

.github/workflows/development-tests.yml renamed to .github/workflows/esmf-all-tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
name: Development Tests
1+
name: ESMF CI
22

33
on:
44
schedule:
55
- cron: "15 8 * * 3"
6+
push:
7+
branches:
8+
- develop
69
pull_request:
710
branches:
811
- develop
12+
- release/*
13+
- patch/*
914
workflow_dispatch:
1015

1116
jobs:
@@ -115,7 +120,11 @@ jobs:
115120
- name: Set up GFORTRANCLANG
116121
if: matrix.config.cmpr == 'gfortranclang'
117122
run: |
123+
command -v gcc-${{matrix.config.cvrs}} || { exit 1; }
124+
command -v g++-${{matrix.config.cvrs}} || { exit 1; }
118125
command -v gfortran-${{matrix.config.cvrs}} || { exit 1; }
126+
ln -fs `which gcc-${{matrix.config.cvrs}}` /usr/local/bin/gcc
127+
ln -fs `which g++-${{matrix.config.cvrs}}` /usr/local/bin/g++
119128
ln -fs `which gfortran-${{matrix.config.cvrs}}` /usr/local/bin/gfortran
120129
clang --version; clang++ --version; gfortran --version
121130
echo "CC=clang" >> $GITHUB_ENV

0 commit comments

Comments
 (0)