Skip to content

Commit 959eb3f

Browse files
authored
Refactor configure command in GitHub Actions workflow
1 parent 2020bec commit 959eb3f

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/github_cmake_nvhpc.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ jobs:
4343
. /home/runner/work/FMS/FMS/spack/share/spack/setup-env.sh
4444
spack load nvhpc netcdf-fortran libyaml mpich
4545
autoreconf -if ./configure.ac
46-
./configure --with-yaml
47-
env:
48-
FC: "mpifort"
49-
CC: "mpicc"
50-
FCFLAGS: "-O0 -g"
51-
CFLAGS: "-O0 -g"
46+
./configure --with-yaml CC=mpicc FC=mpifort FCFLAGS="-O0 -g" CFLAGS="-O0 -g"
47+
- name: Output configure log if failed
48+
if: failure()
49+
run: cat config.log
5250
- name: Compile
5351
run: |
5452
. /home/runner/work/FMS/FMS/spack/share/spack/setup-env.sh

0 commit comments

Comments
 (0)