-
Notifications
You must be signed in to change notification settings - Fork 9
58 lines (53 loc) · 1.68 KB
/
ccpp-linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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: janatests
run: |
echo "--- Running jana-unit-tests ------------------------------"
$GITHUB_WORKSPACE/Linux/bin/jana-unit-tests
- name: BlockExample
run: |
echo "--- Running BlockExample ------------------------------"
$GITHUB_WORKSPACE/Linux/plugins/BlockExample.so