Skip to content

Commit

Permalink
240121.182153.HKT figure out what is wrong with cmake_nagfor
Browse files Browse the repository at this point in the history
  • Loading branch information
zaikunzhang committed Jan 21, 2024
1 parent ac1606b commit a0a95da
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/cmake_nagfor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ on:
stress-test:
description: Stress Test (Optional, true or false)
required: false
cflags:
description: CFLAGS
required: false
fflags:
description: FFLAGS
required: false

# Show the git ref in the workflow name if it is invoked manually.
run-name: ${{ github.event_name == 'workflow_dispatch' && format('Manual run {0} , {1}', inputs.git-ref, inputs.stress-test) || '' }}
Expand Down Expand Up @@ -51,8 +57,10 @@ jobs:
run: |
source ~/local/bin/nag_licensing || echo "\n\nNAG licensing failed.\n\n"
export FC=nagfor
export FFLAGS='-fpp -nan -ieee=stop -recursive -info -gline -u -C -C=alias -C=dangling -C=intovf -C=undefined -kind=unique -Warn=constant_coindexing -Warn=subnormal'
export CFLAGS='-Wall -Wextra -Wpedantic -Werror'
#export FFLAGS='-fpp -nan -ieee=stop -recursive -info -gline -u -C -C=alias -C=dangling -C=intovf -C=undefined -kind=unique -Warn=constant_coindexing -Warn=subnormal'
#export CFLAGS='-Wall -Wextra -Wpedantic -Werror'
export FFLAGS="${{ github.event.inputs.fflags }}"
export CFLAGS="${{ github.event.inputs.cflags }}"
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=. -LAH -DCMAKE_C_FLAGS="${CFLAGS}" -DCMAKE_Fortran_FLAGS="${FFLAGS}" .
cmake --build . --target install
cmake --build . --target tests
Expand Down

0 comments on commit a0a95da

Please sign in to comment.