Skip to content

Commit

Permalink
Add build-hpc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
reuterbal committed Nov 21, 2024
1 parent 156ea96 commit 41f883a
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build-hpc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: build-hpc

# Controls when the action will run
on:

# Trigger the workflow on all pull requests
pull_request: ~

# Allow workflow to be dispatched on demand
workflow_dispatch: ~

env:
ECTRANS_TOOLS: ${{ github.workspace }}/.github/tools
CTEST_PARALLEL_LEVEL: 1
CACHE_SUFFIX: v1 # Increase to force new cache to be created

jobs:
ci-hpc:
name: ci-hpc
runs-on: [self-hosted, linux, hpc]
env:
GH_TOKEN: ${{ secrets.GH_REPO_READ_TOKEN }}
steps:
- uses: ecmwf-actions/reusable-workflows/ci-hpc@v2
with:
# github_user: ${{ secrets.BUILD_PACKAGE_HPC_GITHUB_USER }}
# github_token: ${{ secrets.GH_REPO_READ_TOKEN }}
site: ac-batch
troika_user: ${{ secrets.HPC_CI_SSH_USER }}
# repository: ecmwf-ifs/ectrans@${{ github.event.pull_request.head.sha || github.sha }}
# build_config: .github/nightly-ci-hpc-config.yml
modules:
- ecbuild
- cmake
- ninja
- prgenv/nvidia
- hpcx-openmpi
- fftw
dependencies: |
ecmwf-ifs/fiat
dependency_branch: develop
dependency_cmake_options: |
ecmwf-ifs/fiat: "-G Ninja -DENABLE_TESTS=OFF -DENABLE_MPI=ON"
cmake_options: "-G Ninja -DENABLE_MPI=ON -DENABLE_FFTW=ON -DENABLE_ACC=ON -DENABLE_GPU=ON"
sbatch_options: |
#SBATCH --time=00:20:00
#SBATCH --nodes=1
#SBATCH --ntasks=32
#SBATCH --gpus=1
#SBATCH --mem=128G
#SBATCH --qos=dg
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,38 @@ jobs:
# uses: codecov/codecov-action@v2
# with:
# files: ${{ steps.build-test.outputs.coverage_file }}

ci-hpc:
name: ci-hpc
runs-on: [self-hosted, linux, hpc]
env:
GH_TOKEN: ${{ secrets.GH_REPO_READ_TOKEN }}
steps:
- uses: ecmwf-actions/reusable-workflows/ci-hpc@v2
with:
# github_user: ${{ secrets.BUILD_PACKAGE_HPC_GITHUB_USER }}
# github_token: ${{ secrets.GH_REPO_READ_TOKEN }}
site: ac-batch
troika_user: ${{ secrets.HPC_CI_SSH_USER }}
# repository: ecmwf-ifs/ectrans@${{ github.event.pull_request.head.sha || github.sha }}
# build_config: .github/nightly-ci-hpc-config.yml
modules:
- ecbuild
- cmake
- ninja
- prgenv/nvidia
- hpcx-openmpi
- fftw
dependencies: |
ecmwf-ifs/fiat
dependency_branch: develop
dependency_cmake_options: |
ecmwf-ifs/fiat: "-G Ninja -DENABLE_TESTS=OFF -DENABLE_MPI=ON"
cmake_options: "-G Ninja -DENABLE_MPI=ON -DENABLE_FFTW=ON -DENABLE_ACC=ON -DENABLE_GPU=ON"
sbatch_options: |
#SBATCH --time=00:20:00
#SBATCH --nodes=1
#SBATCH --ntasks=32
#SBATCH --gpus=1
#SBATCH --mem=128G
#SBATCH --qos=dg

0 comments on commit 41f883a

Please sign in to comment.