Improve CI coverage #479
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/C++ CI docker | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build JANA2 with all options enabled | |
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: | | |
export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/Linux/plugins | |
echo "--- Running JTest plugin -----------------------" | |
$GITHUB_WORKSPACE/Linux/bin/jana -PPLUGINS=JTest -Pjana:nevents=100 | |
- name: jana-unit-tests | |
run: | | |
echo "--- Running jana-unit-tests ------------------------------" | |
$GITHUB_WORKSPACE/Linux/bin/jana-unit-tests | |
- name: TimesliceExample with simple (physics event) topology | |
run: | | |
echo "--- Running TimesliceExample with simple topology ------------------------------" | |
$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 ------------------------------" | |
$GITHUB_WORKSPACE/Linux/bin/jana -Pplugins=TimesliceExample -Pjana:nevents=100 timeslices.root | |