Skip to content

Merge pull request #287 from JeffersonLab/nbrei_service_initialization #423

Merge pull request #287 from JeffersonLab/nbrei_service_initialization

Merge pull request #287 from JeffersonLab/nbrei_service_initialization #423

Workflow file for this run

name: C/C++ CI ubuntu
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
#os: [ubuntu-20.04, ubuntu-22.04]
os: [ubuntu-22.04]
# See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on for available platforms
runs-on: ${{ matrix.os }}
# Run cmake, make, and make install as separate steps
# Note that every step starts out in the $GITHUB_WORKSPACE
# directory.
steps:
- uses: actions/checkout@v3
- name: deps
run: |
sudo apt-get update
sudo apt-get install -y libzmq3-dev libxerces-c-dev python3-dev
- name: cmake
run: |
mkdir -p $GITHUB_WORKSPACE/build
cd $GITHUB_WORKSPACE/build
cmake ../ -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/Linux \
-DUSE_PYTHON=ON \
-DUSE_ROOT=OFF \
-DUSE_XERCES=ON -DXercesC_DIR=/usr \
-DUSE_ZEROMQ=ON
- 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