Skip to content

Commit

Permalink
Add manual and cron triggers, set proper CDash groups (#363)
Browse files Browse the repository at this point in the history
I can't fully test this until this gets merged to 'master' but this should be
close.
  • Loading branch information
bartlettroscoe committed Jul 21, 2021
1 parent 6ae2723 commit 56b5036
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tribits_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ name: TriBITS Testing
# Triggers the workflow on push or pull request
# for the master and develop branch
on:
schedule:
- cron: '10 0 * * *' # Run 10 minutes after midnight
push:
branches: [ master ]
pull_request:
branches: [ master ]

workflow_dispatch:
inputs:
ctest_build_name:
description: 'CTEST_BUILD_NAME'
required: false
jobs:
build:
strategy:
Expand Down
13 changes: 13 additions & 0 deletions cmake/ctest/github_actions/run_github_actions_ctest_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ assert_required_option_set --python-ver "${python_ver}"
assert_required_option_set --cxx-compiler-and-ver "${cxx_compiler_and_ver}"
# NOTE: Fortran is not required!


#
# B) Set up options for running build
#
Expand Down Expand Up @@ -158,6 +159,18 @@ fi
export CTEST_CMAKE_GENERATOR
echo "CTEST_CMAKE_GENERATOR = '${CTEST_CMAKE_GENERATOR}'"

# CTEST_TEST_TYPE
if [[ "${GITHUB_EVENT_NAME}" == "schedule" ]]; then
CTEST_TEST_TYPE=Nightly
elif [[ "${GITHUB_EVENT_NAME}" == "push" ]]; then
CTEST_TEST_TYPE=Continuous
else
CTEST_TEST_TYPE=Experimental
fi
export CTEST_TEST_TYPE
echo "CTEST_TEST_TYPE = '${CTEST_TEST_TYPE}'"


#
# C) Run the local configure, build, test and submit using exported vars above
#
Expand Down

0 comments on commit 56b5036

Please sign in to comment.