Skip to content

Commit

Permalink
Working on automating cdash access on github.
Browse files Browse the repository at this point in the history
  • Loading branch information
WardF committed Oct 24, 2023
1 parent 794ff5a commit 4e7a864
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/run_tests_cdash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ jobs:
- name: Check Cache
shell: bash -l {0}
run: ls ${HOME}/environments/${{ matrix.hdf5 }} && ls ${HOME}/environments/${{ matrix.hdf5}}/lib

- name: Run ctest serial script
with: # Access the CDash TOken
CDASH_TOKEN: ${{ secrets.CDASH_TOKEN }}
shell: bash -l {0}
run: |
mkdir build
Expand Down
7 changes: 7 additions & 0 deletions ctest_scripts/ctest_serial.ctest
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ SET(CTEST_SOURCE_DIRECTORY "..")
SET(CTEST_BINARY_DIRECTORY ".")

set(CDASH_TOKEN $ENV{CDASH_TOKEN})

IF (CDASH_TOKEN)
MESSAGE("CDASH TOKEN FOUND")
ELSE (CDASH_TOKEN)
MESSAGE("NO CDASH TOKEN FOUND")
ENDIF (CDASH_TOKEN)

MESSAGE("Using cdash token: ${CDASH_TOKEN}")


Expand Down

0 comments on commit 4e7a864

Please sign in to comment.