Skip to content

Commit

Permalink
fix(ci): test ROOT-dependent algorithms (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks authored Mar 6, 2024
1 parent 0a37f2f commit a9c0756
Show file tree
Hide file tree
Showing 17 changed files with 347 additions and 80 deletions.
18 changes: 18 additions & 0 deletions .github/install-dependency-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,23 @@ GENERAL_PACKAGE_LIST_LINUX=(
make
cmake
tree
wget
git
which
pkgconf
ninja
meson
gcovr # for coverage
python-pygments # for coverage report syntax colors
llvm # for `llvm-symbolizer`, for human-readable sanitizer results
### ROOT dependencies
binutils
libx11
libxpm
libxft
libxext
openssl
gsl
)
IGUANA_PACKAGE_LIST_LINUX=(
fmt
Expand All @@ -32,6 +42,14 @@ GENERAL_PACKAGE_LIST_MACOS=(
tree
ninja
meson
### ROOT dependencies
binutils
libx11
libxpm
libxft
libxext
openssl
gsl
)
IGUANA_PACKAGE_LIST_MACOS=(
fmt
Expand Down
6 changes: 6 additions & 0 deletions .github/schedule-issue.md
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.
51 changes: 51 additions & 0 deletions .github/source-ROOT.sh
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
Loading

0 comments on commit a9c0756

Please sign in to comment.