forked from NOAA-EMC/ng-godas
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.38 KB
/
make.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#############################################################
# Rename the file extension to ".yaml" (remove "_") to enable
#############################################################
name: ------- Building Pull Requests (ufs-srweather-app) -------
on:
# run it on push to the default repository branch
push:
branches: [develop]
# run it during pull request
pull_request:
jobs:
build:
runs-on: ubuntu-latest # windows-latest | macos-latest
defaults:
run:
shell: bash
container:
image: docker://noaaepic/ubuntu20.04-hpc-stack:0.1
name: 1. Build ufs-srweather-app in the container
steps:
- uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
path: ./
- name: 1.1. Running cmake/make ufs-srweather-app
run: |
cd ./
echo $(pwd)
echo $(ls)
echo $(ls /opt)
#cd /opt
ln -s /usr/bin/python3 /usr/bin/python
source /usr/share/lmod/6.6/init/profile
module use /opt/hpc-modules/modulefiles/stack
module load hpc hpc-gnu hpc-openmpi
module load netcdf hdf5 bacio sfcio sigio nemsio w3emc esmf fms crtm g2 png zlib g2tmpl ip sp w3nco cmake/3.21.1 gfsio wgrib2 upp