ci: test HIPO 4.2.0 #74
Workflow file for this run
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
name: C++ CI Testing | |
on: pull_request | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build_hipo: | |
runs-on: ubuntu-latest | |
container: rootproject/root:${{ matrix.version }} | |
strategy: | |
matrix: | |
version: [6.28.12-ubuntu22.04] | |
steps: | |
- name: system dependencies | |
run: | | |
apt -y update | |
apt -y upgrade | |
apt -y install git python3-pip | |
python -m pip install meson ninja | |
echo "===== VERSIONS =====" | |
for pkg in meson ninja; do echo "$pkg: $($pkg --version)"; done | |
- name: checkout hipo | |
uses: actions/checkout@v4 | |
with: | |
repository: c-dilks/hipo ##### FIXME: should be `master` | |
ref: fix-meson # if you want to use a fixed tag; remove if you want to use `main` | |
path: hipo_src | |
- name: build hipo | |
run: | | |
meson setup hipo_build hipo_src --prefix=$(pwd)/hipo_install | |
meson install -C build | |
tar cavf hipo_install{.tar.zst,} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: hipo_install-${{ matrix.version }} | |
retention-days: 5 | |
path: hipo_install.tar.zst | |
build_and_test: | |
needs: [build_hipo] | |
runs-on: ubuntu-latest | |
container: rootproject/root:${{ matrix.version }} | |
strategy: | |
matrix: | |
version: [6.28.12-ubuntu22.04] | |
steps: | |
- name: system dependencies | |
run: | | |
apt -y update | |
apt -y upgrade | |
apt -y install git python2 python-pip | |
python2 -m pip install scons | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: set env vars | |
run: | | |
echo "CLAS12ROOT=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
echo "HIPO=$GITHUB_WORKSPACE/hipo" >> $GITHUB_ENV | |
echo "CCDB_HOME=$GITHUB_WORKSPACE/ccdb" >> $GITHUB_ENV | |
echo "RCDB_HOME=$GITHUB_WORKSPACE/rcdb" >> $GITHUB_ENV | |
echo "QADB=$GITHUB_WORKSPACE/clas12-qadb" >> $GITHUB_ENV | |
- name: set paths | |
run: | | |
echo "PYTHONPATH=$CCDB_HOME/python:$RCDB_HOME/python:$PYTHONPATH" >> $GITHUB_ENV | |
echo "PATH=$PWD/bin:$CCDB_HOME:$CCDB_HOME/bin:$RCDB_HOME/bin:$RCDB_HOME/cpp/bin:$PATH" >> $GITHUB_ENV | |
echo "LD_LIBRARY_PATH=$RCDB_HOME/cpp/lib:$CCDB_HOME/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV | |
- name: get HIPO installation | |
uses: actions/download-artifact@v4 | |
with: | |
name: hipo_install-${{ matrix.version }} | |
- name: extract HIPO installation | |
run: | | |
tar xvf hipo_install.tar.zst | |
mkdir -p $HIPO | |
mv hipo_install/* $HIPO/ | |
- name: build ccdb | |
run: | | |
cd $CCDB_HOME | |
source environment.bash | |
python2 $(which scons) | |
- name: build clas12root | |
run: | | |
./installC12Root | |
- name: run example on data file | |
run: | | |
export CLAS12ROOT=$PWD | |
./bin/clas12root -q ./tests/read_file.C |