|
1 | 1 | name: build the CCPP-SCM with Nvidia |
2 | 2 |
|
3 | | -on: |
4 | | - workflow_run: |
5 | | - workflows: ["build and run SCM regression tests"] |
6 | | - types: |
7 | | - - completed |
| 3 | +on: [pull_request,workflow_dispatch] |
8 | 4 |
|
9 | 5 | jobs: |
10 | 6 |
|
11 | 7 | build_scm: |
12 | | - # trigger only after the SCM regression tests have completed from a PR or workflow event |
13 | | - if: | |
14 | | - github.event.workflow_run.event == 'pull_request' || |
15 | | - github.event.workflow_run.event == 'workflow_dispatch' |
16 | 8 | runs-on: ubuntu-latest |
17 | 9 | strategy: |
18 | 10 | fail-fast: false |
|
64 | 56 | run: | |
65 | 57 | df -h |
66 | 58 |
|
67 | | - ####################################################################################### |
68 | | - # Initial |
69 | | - ####################################################################################### |
70 | | - - name: Checkout SCM code (into /home/runner/work/ccpp-scm/) |
71 | | - uses: actions/checkout@v4 |
72 | | - |
73 | | - - name: Initialize submodules |
74 | | - run: git submodule update --init --recursive |
75 | | - |
76 | | - ####################################################################################### |
77 | | - # Python setup |
78 | | - ####################################################################################### |
79 | | - - name: Set up Python |
80 | | - uses: actions/setup-python@v5 |
81 | | - with: |
82 | | - python-version: ${{matrix.py-version}} |
83 | | - |
84 | 59 | # - name: Add conda to system path |
85 | 60 | # run: | |
86 | 61 | # echo $CONDA/bin >> $GITHUB_PATH |
@@ -124,14 +99,31 @@ jobs: |
124 | 99 | echo "CMAKE_C_COMPILER=/home/runner/hpc_sdk/Linux_x86_64/${NVVERSION}/compilers/bin/nvc" >> $GITHUB_ENV |
125 | 100 | echo "CMAKE_Fortran_COMPILER=/home/runner/hpc_sdk/Linux_x86_64/${NVVERSION}/compilers/bin/nvfortran" >> $GITHUB_ENV |
126 | 101 |
|
127 | | - ####################################################################################### |
128 | | - # Install FORTRAN dependencies |
129 | | - ####################################################################################### |
130 | | - |
131 | 102 | - name: Check space (pre dependency install) |
132 | 103 | run: | |
133 | 104 | df -h |
134 | 105 |
|
| 106 | + ####################################################################################### |
| 107 | + # Initialize SCM |
| 108 | + ####################################################################################### |
| 109 | + - name: Checkout SCM code (into /home/runner/work/ccpp-scm/) |
| 110 | + uses: actions/checkout@v4 |
| 111 | + |
| 112 | + - name: Initialize submodules |
| 113 | + run: git submodule update --init --recursive |
| 114 | + |
| 115 | + ####################################################################################### |
| 116 | + # Python setup |
| 117 | + ####################################################################################### |
| 118 | + - name: Set up Python |
| 119 | + uses: actions/setup-python@v5 |
| 120 | + with: |
| 121 | + python-version: ${{matrix.py-version}} |
| 122 | + |
| 123 | + ####################################################################################### |
| 124 | + # Install FORTRAN dependencies |
| 125 | + ####################################################################################### |
| 126 | + |
135 | 127 | - name: Install Curl and zlib |
136 | 128 | run: | |
137 | 129 | sudo apt-get update |
|
0 commit comments