Skip to content
Merged
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build SRW
on: [push]
jobs:
Explore-GitHub-Actions:
runs-on: [self-hosted, ncar]
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v2
- run: |
cd ufs-srweather-app
./manage_externals/checkout_externals
module use modulefiles
module load build_cheyenne_intel
mdkir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=.. ..
make -j 4
- run: echo "🍏 This job's status is ${{ job.status }}."
4 changes: 4 additions & 0 deletions modulefiles/build_cheyenne_gnu
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ module load hpc-mpt/2.22

module load srw_common
module load g2/3.4.3
module load esmf/8_2_0
module load netcdf/4.7.4
module load png/1.6.35
module load pio/2.5.2

setenv CMAKE_C_COMPILER mpicc
setenv CMAKE_CXX_COMPILER mpicxx
Expand Down
4 changes: 4 additions & 0 deletions modulefiles/build_cheyenne_intel
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ module load hpc-mpt/2.22

module load srw_common
module load g2/3.4.3
module load esmf/8_2_0
module load netcdf/4.7.4
module load png/1.6.35
module load pio/2.5.2

setenv CMAKE_C_COMPILER mpicc
setenv CMAKE_CXX_COMPILER mpicxx
Expand Down