Merge pull request #307 from JeffersonLab/nbrei_inspector #509
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/C++ CI docker | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
jana2_env_everything_except_cuda: | |
name: Build JANA2 with all dependencies except CUDA | |
runs-on: ubuntu-latest | |
container: | |
image: nbrei/jana2_env_everything_except_cuda | |
# Build Docker container and run the entrypoint.sh script in it | |
steps: | |
- uses: actions/checkout@v4 | |
- name: cmake | |
run: | | |
mkdir -p $GITHUB_WORKSPACE/build | |
cd $GITHUB_WORKSPACE/build | |
cmake ../ -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/Linux \ | |
-DUSE_PYTHON=ON \ | |
-DUSE_ROOT=ON \ | |
-DUSE_PODIO=ON \ | |
-DUSE_XERCES=ON \ | |
-DXercesC_DIR=/usr \ | |
-DUSE_ZEROMQ=ON \ | |
-Dpodio_DIR=/app/podio/install/lib/cmake/podio/ | |
- name: make | |
run: | | |
cd $GITHUB_WORKSPACE/build | |
make | |
- name: make install | |
run: | | |
cd $GITHUB_WORKSPACE/build | |
make install | |
- name: JTest | |
run: | | |
echo "--- Running JTest plugin -----------------------" | |
export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/Linux/plugins | |
$GITHUB_WORKSPACE/Linux/bin/jana -PPLUGINS=JTest -Pjana:nevents=100 | |
- name: jana-unit-tests | |
run: | | |
echo "--- Running jana-unit-tests ------------------------------" | |
export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/Linux/plugins | |
$GITHUB_WORKSPACE/Linux/bin/jana-unit-tests | |
- name: TimesliceExample with simple (physics event) topology | |
run: | | |
echo "--- Running TimesliceExample with simple topology ------------------------------" | |
export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/Linux/plugins | |
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/Linux/lib:/app/podio/install/lib:$LD_LIBRARY_PATH | |
$GITHUB_WORKSPACE/Linux/bin/jana -Pplugins=TimesliceExample -Pjana:nevents=100 events.root | |
- name: TimesliceExample with complex (timeslice) topology | |
run: | | |
echo "--- Running TimesliceExample with complex topology ------------------------------" | |
export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/Linux/plugins | |
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/Linux/lib:/app/podio/install/lib:$LD_LIBRARY_PATH | |
$GITHUB_WORKSPACE/Linux/bin/jana -Pplugins=TimesliceExample -Pjana:nevents=100 timeslices.root | |