Skip to content

Merge pull request #259 from JeffersonLab/nbrei_scheduler_refactoring #370

Merge pull request #259 from JeffersonLab/nbrei_scheduler_refactoring

Merge pull request #259 from JeffersonLab/nbrei_scheduler_refactoring #370

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 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: janatests
run: |
echo "--- Running janatests ------------------------------"
$GITHUB_WORKSPACE/Linux/bin/janatests
- name: BlockExample
run: |
echo "--- Running BlockExample ------------------------------"
$GITHUB_WORKSPACE/Linux/plugins/BlockExample.so