-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (34 loc) · 1.04 KB
/
ccpp-macos.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
name: C/C++ CI macOS-latest
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macOS-latest
# 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: cmake
run: |
mkdir -p $GITHUB_WORKSPACE/build
cd $GITHUB_WORKSPACE/build
cmake ../ -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/Darwin -DUSE_ROOT=Off
- name: make
run: |
cd $GITHUB_WORKSPACE/build
make
- name: make install
run: |
cd $GITHUB_WORKSPACE/build
make install
- name: run tests
run: |
export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/Darwin/plugins
echo "--- Running JTest plugin -----------------------"
$GITHUB_WORKSPACE/Darwin/bin/jana -PPLUGINS=JTest -Pjana:nevents=100
echo "--- Running jana-unit-tests ------------------------------"
$GITHUB_WORKSPACE/Darwin/bin/jana-unit-tests