diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..4703c58749 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 }}." diff --git a/modulefiles/build_cheyenne_gnu b/modulefiles/build_cheyenne_gnu index a5730c88b6..add5ee3b0f 100644 --- a/modulefiles/build_cheyenne_gnu +++ b/modulefiles/build_cheyenne_gnu @@ -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 diff --git a/modulefiles/build_cheyenne_intel b/modulefiles/build_cheyenne_intel index fc4a6392c5..b83c36a5df 100644 --- a/modulefiles/build_cheyenne_intel +++ b/modulefiles/build_cheyenne_intel @@ -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