Skip to content

Commit 69d4cbb

Browse files
committed
Installing Nvidia first, since it is too big otherwise for the runner
1 parent bd86834 commit 69d4cbb

File tree

1 file changed

+22
-30
lines changed

1 file changed

+22
-30
lines changed

.github/workflows/ci_build_scm_ubuntu_nvidia.yml

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
name: build the CCPP-SCM with Nvidia
22

3-
on:
4-
workflow_run:
5-
workflows: ["build and run SCM regression tests"]
6-
types:
7-
- completed
3+
on: [pull_request,workflow_dispatch]
84

95
jobs:
106

117
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'
168
runs-on: ubuntu-latest
179
strategy:
1810
fail-fast: false
@@ -64,23 +56,6 @@ jobs:
6456
run: |
6557
df -h
6658
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-
8459
# - name: Add conda to system path
8560
# run: |
8661
# echo $CONDA/bin >> $GITHUB_PATH
@@ -124,14 +99,31 @@ jobs:
12499
echo "CMAKE_C_COMPILER=/home/runner/hpc_sdk/Linux_x86_64/${NVVERSION}/compilers/bin/nvc" >> $GITHUB_ENV
125100
echo "CMAKE_Fortran_COMPILER=/home/runner/hpc_sdk/Linux_x86_64/${NVVERSION}/compilers/bin/nvfortran" >> $GITHUB_ENV
126101
127-
#######################################################################################
128-
# Install FORTRAN dependencies
129-
#######################################################################################
130-
131102
- name: Check space (pre dependency install)
132103
run: |
133104
df -h
134105
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+
135127
- name: Install Curl and zlib
136128
run: |
137129
sudo apt-get update

0 commit comments

Comments
 (0)