-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): test ROOT-dependent algorithms (#122)
- Loading branch information
Showing
17 changed files
with
347 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: Weekly {{ env.WORKFLOW_ID }} pipeline failed on {{ date | date('dddd, MMMM Do, [at] HH:mm[Z]') }} | ||
--- | ||
Workflow Run: {{ env.REPO_URL }}/actions/runs/{{ env.RUN_ID }} | ||
|
||
Please [check the cache](https://github.com/JeffersonLab/iguana/actions/caches), since weekly pipelines are scheduled to ensure cached dependency builds are up-to-date with respect to upstream. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash | ||
# source ROOT environment for CI | ||
set -e | ||
set -u | ||
|
||
# parse arguments | ||
if [ $# -lt 2 ]; then | ||
echo """ | ||
USAGE: $0 [path/to/root] [runner] [OPTIONS]... | ||
OPTIONS: | ||
ld append (DY)LD_LIBRARY_PATH | ||
python append PYTHONPATH | ||
NOTE: this should only be used on the CI | ||
""" | ||
exit 2 | ||
fi | ||
root_path=$1 | ||
runner=$2 | ||
shift | ||
shift | ||
set_ld_path=false | ||
set_python_path=false | ||
for arg in "$@"; do | ||
case "$arg" in | ||
ld) set_ld_path=true ;; | ||
python) set_python_path=true ;; | ||
esac | ||
done | ||
|
||
thisroot=$root_path/bin/thisroot.sh | ||
if [ ! -f $thisroot ]; then | ||
echo "ERROR: 'thisroot.sh' is not found at $thisroot" >&2 | ||
exit 1 | ||
fi | ||
|
||
source $thisroot | ||
|
||
echo PATH=$PATH >> $GITHUB_ENV | ||
|
||
if $set_ld_path; then | ||
case "$runner" in | ||
macos-latest) echo DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH >> $GITHUB_ENV ;; | ||
*) echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH >> $GITHUB_ENV ;; | ||
esac | ||
fi | ||
|
||
if $set_python_path; then | ||
echo PYTHONPATH=$PYTHONPATH >> $GITHUB_ENV | ||
fi |
Oops, something went wrong.