Skip to content

Commit e902e38

Browse files
authored
Merge pull request #3092 from E3SM-Project/bartgol/workflows/eamxx-add-cov-and-sanitizer
Add more eamxx workflows for nightlies
2 parents a1d4b50 + 1534d00 commit e902e38

File tree

3 files changed

+125
-8
lines changed

3 files changed

+125
-8
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: eamxx-sa-coverage
2+
3+
on:
4+
workflow_dispatch:
5+
6+
# Add schedule trigger for nightly runs at midnight MT (Standard Time)
7+
schedule:
8+
- cron: '0 7 * * *' # Runs at 7 AM UTC, which is midnight MT during Standard Time
9+
10+
concurrency:
11+
# Two runs are in the same group if they are testing the same git ref
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
env:
16+
submit: ${{ github.event_name == 'schedule' && 'true' || 'false' }} # Submit to cdash only for nightlies
17+
18+
jobs:
19+
gcc-openmp:
20+
runs-on: [self-hosted, ghci-snl-cpu, gcc]
21+
name: gcc-openmp / cov
22+
steps:
23+
- name: Check out the repository
24+
uses: actions/checkout@v4
25+
with:
26+
persist-credentials: false
27+
show-progress: false
28+
submodules: recursive
29+
- name: Show action trigger
30+
uses: ./.github/actions/show-workflow-trigger
31+
- name: Run tests
32+
uses: ./.github/actions/test-all-scream
33+
with:
34+
build_type: cov
35+
machine: ghci-snl-cpu
36+
generate: false
37+
submit: ${{ env.submit }}
38+
cmake-configs: Kokkos_ENABLE_OPENMP=ON
39+
gcc-cuda:
40+
runs-on: [self-hosted, ghci-snl-cuda, cuda, gcc]
41+
name: gcc-cuda / cov
42+
steps:
43+
- name: Check out the repository
44+
uses: actions/checkout@v4
45+
with:
46+
persist-credentials: false
47+
show-progress: false
48+
submodules: recursive
49+
- name: Show action trigger
50+
uses: ./.github/actions/show-workflow-trigger
51+
- name: Run tests
52+
uses: ./.github/actions/test-all-scream
53+
with:
54+
build_type: cov
55+
machine: ghci-snl-cuda
56+
generate: false
57+
submit: ${{ env.submit }}
58+
cmake-configs: Kokkos_ARCH_VOLTA70=ON;CMAKE_CUDA_ARCHITECTURES=70
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: eamxx-sa-sanitizer
2+
3+
on:
4+
workflow_dispatch:
5+
6+
# Add schedule trigger for nightly runs at midnight MT (Standard Time)
7+
schedule:
8+
- cron: '0 7 * * *' # Runs at 7 AM UTC, which is midnight MT during Standard Time
9+
10+
concurrency:
11+
# Two runs are in the same group if they are testing the same git ref
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
env:
16+
submit: ${{ github.event_name == 'schedule' && 'true' || 'false' }} # Submit to cdash only for nightlies
17+
18+
jobs:
19+
gcc-openmp:
20+
runs-on: [self-hosted, ghci-snl-cpu, gcc]
21+
name: gcc-openmp / cov
22+
steps:
23+
- name: Check out the repository
24+
uses: actions/checkout@v4
25+
with:
26+
persist-credentials: false
27+
show-progress: false
28+
submodules: recursive
29+
- name: Show action trigger
30+
uses: ./.github/actions/show-workflow-trigger
31+
- name: Run tests
32+
uses: ./.github/actions/test-all-scream
33+
with:
34+
build_type: valg
35+
machine: ghci-snl-cpu
36+
generate: false
37+
submit: ${{ env.submit }}
38+
cmake-configs: Kokkos_ENABLE_OPENMP=ON
39+
gcc-cuda:
40+
runs-on: [self-hosted, ghci-snl-cuda, cuda, gcc]
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
build_type: [csm, csr, csi, css]
45+
name: gcc-cuda / ${{ matrix.build_type }}
46+
steps:
47+
- name: Check out the repository
48+
uses: actions/checkout@v4
49+
with:
50+
persist-credentials: false
51+
show-progress: false
52+
submodules: recursive
53+
- name: Show action trigger
54+
uses: ./.github/actions/show-workflow-trigger
55+
- name: Run tests
56+
uses: ./.github/actions/test-all-scream
57+
with:
58+
build_type: ${{ matrix.build_type }}
59+
machine: ghci-snl-cuda
60+
generate: false
61+
submit: ${{ env.submit }}
62+
cmake-configs: Kokkos_ARCH_VOLTA70=ON;CMAKE_CUDA_ARCHITECTURES=70

.github/workflows/eamxx-standalone-testing.yml renamed to .github/workflows/eamxx-sa-testing.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ concurrency:
4444
group: ${{ github.workflow }}-${{ github.ref }}
4545
cancel-in-progress: true
4646

47+
env:
48+
submit: ${{ github.event_name == 'schedule' && 'true' || 'false' }} # Submit to cdash only for nightlies
49+
4750
jobs:
4851
gcc-openmp:
4952
runs-on: [self-hosted, ghci-snl-cpu, gcc]
@@ -73,11 +76,8 @@ jobs:
7376
pr_number: ${{ github.event.pull_request.number }}
7477
- name: Set test-all inputs based on event specs
7578
run: |
76-
echo "submit=false" >> $GITHUB_ENV
7779
echo "generate=false" >> $GITHUB_ENV
78-
if [ "${{ github.event_name }}" == "schedule" ]; then
79-
echo "submit=true" >> $GITHUB_ENV
80-
elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
80+
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
8181
if [ "${{ inputs.bless }}" == "true" ]; then
8282
echo "generate=true" >> $GITHUB_ENV
8383
fi
@@ -118,11 +118,8 @@ jobs:
118118
pr_number: ${{ github.event.pull_request.number }}
119119
- name: Set test-all inputs based on event specs
120120
run: |
121-
echo "submit=false" >> $GITHUB_ENV
122121
echo "generate=false" >> $GITHUB_ENV
123-
if [ "${{ github.event_name }}" == "schedule" ]; then
124-
echo "submit=true" >> $GITHUB_ENV
125-
elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
122+
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
126123
if [ "${{ inputs.bless }}" == "true" ]; then
127124
echo "generate=true" >> $GITHUB_ENV
128125
fi

0 commit comments

Comments
 (0)