Skip to content

Commit

Permalink
Merge pull request #3092 from E3SM-Project/bartgol/workflows/eamxx-ad…
Browse files Browse the repository at this point in the history
…d-cov-and-sanitizer

Add more eamxx workflows for nightlies
  • Loading branch information
bartgol authored Nov 4, 2024
2 parents a1d4b50 + 1534d00 commit e902e38
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 8 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/eamxx-sa-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: eamxx-sa-coverage

on:
workflow_dispatch:

# Add schedule trigger for nightly runs at midnight MT (Standard Time)
schedule:
- cron: '0 7 * * *' # Runs at 7 AM UTC, which is midnight MT during Standard Time

concurrency:
# Two runs are in the same group if they are testing the same git ref
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
submit: ${{ github.event_name == 'schedule' && 'true' || 'false' }} # Submit to cdash only for nightlies

jobs:
gcc-openmp:
runs-on: [self-hosted, ghci-snl-cpu, gcc]
name: gcc-openmp / cov
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
persist-credentials: false
show-progress: false
submodules: recursive
- name: Show action trigger
uses: ./.github/actions/show-workflow-trigger
- name: Run tests
uses: ./.github/actions/test-all-scream
with:
build_type: cov
machine: ghci-snl-cpu
generate: false
submit: ${{ env.submit }}
cmake-configs: Kokkos_ENABLE_OPENMP=ON
gcc-cuda:
runs-on: [self-hosted, ghci-snl-cuda, cuda, gcc]
name: gcc-cuda / cov
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
persist-credentials: false
show-progress: false
submodules: recursive
- name: Show action trigger
uses: ./.github/actions/show-workflow-trigger
- name: Run tests
uses: ./.github/actions/test-all-scream
with:
build_type: cov
machine: ghci-snl-cuda
generate: false
submit: ${{ env.submit }}
cmake-configs: Kokkos_ARCH_VOLTA70=ON;CMAKE_CUDA_ARCHITECTURES=70
62 changes: 62 additions & 0 deletions .github/workflows/eamxx-sa-sanitizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: eamxx-sa-sanitizer

on:
workflow_dispatch:

# Add schedule trigger for nightly runs at midnight MT (Standard Time)
schedule:
- cron: '0 7 * * *' # Runs at 7 AM UTC, which is midnight MT during Standard Time

concurrency:
# Two runs are in the same group if they are testing the same git ref
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
submit: ${{ github.event_name == 'schedule' && 'true' || 'false' }} # Submit to cdash only for nightlies

jobs:
gcc-openmp:
runs-on: [self-hosted, ghci-snl-cpu, gcc]
name: gcc-openmp / cov
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
persist-credentials: false
show-progress: false
submodules: recursive
- name: Show action trigger
uses: ./.github/actions/show-workflow-trigger
- name: Run tests
uses: ./.github/actions/test-all-scream
with:
build_type: valg
machine: ghci-snl-cpu
generate: false
submit: ${{ env.submit }}
cmake-configs: Kokkos_ENABLE_OPENMP=ON
gcc-cuda:
runs-on: [self-hosted, ghci-snl-cuda, cuda, gcc]
strategy:
fail-fast: false
matrix:
build_type: [csm, csr, csi, css]
name: gcc-cuda / ${{ matrix.build_type }}
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
persist-credentials: false
show-progress: false
submodules: recursive
- name: Show action trigger
uses: ./.github/actions/show-workflow-trigger
- name: Run tests
uses: ./.github/actions/test-all-scream
with:
build_type: ${{ matrix.build_type }}
machine: ghci-snl-cuda
generate: false
submit: ${{ env.submit }}
cmake-configs: Kokkos_ARCH_VOLTA70=ON;CMAKE_CUDA_ARCHITECTURES=70
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
submit: ${{ github.event_name == 'schedule' && 'true' || 'false' }} # Submit to cdash only for nightlies

jobs:
gcc-openmp:
runs-on: [self-hosted, ghci-snl-cpu, gcc]
Expand Down Expand Up @@ -73,11 +76,8 @@ jobs:
pr_number: ${{ github.event.pull_request.number }}
- name: Set test-all inputs based on event specs
run: |
echo "submit=false" >> $GITHUB_ENV
echo "generate=false" >> $GITHUB_ENV
if [ "${{ github.event_name }}" == "schedule" ]; then
echo "submit=true" >> $GITHUB_ENV
elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
if [ "${{ inputs.bless }}" == "true" ]; then
echo "generate=true" >> $GITHUB_ENV
fi
Expand Down Expand Up @@ -118,11 +118,8 @@ jobs:
pr_number: ${{ github.event.pull_request.number }}
- name: Set test-all inputs based on event specs
run: |
echo "submit=false" >> $GITHUB_ENV
echo "generate=false" >> $GITHUB_ENV
if [ "${{ github.event_name }}" == "schedule" ]; then
echo "submit=true" >> $GITHUB_ENV
elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
if [ "${{ inputs.bless }}" == "true" ]; then
echo "generate=true" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit e902e38

Please sign in to comment.