-
Notifications
You must be signed in to change notification settings - Fork 9
54 lines (51 loc) · 1.64 KB
/
ccpp-epscimac.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
name: C/C++ CI epscimac server
on:
push:
branches: [ cissie_ci ]
pull_request:
branches: [ cissie_ci ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-n-install-jana:
# matching the label to corresponding self-hosted runner
runs-on: [self-hosted, macOS, ARM64]
# 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: show path
# run: |
# echo $GITHUB_WORKSPACE # /Users/xmei/actions-runners/_work/JANA2/JANA2
- name: cmake configure
run: |
export PATH=/opt/homebrew/bin:$PATH
which cmake
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
# depends on build-n-install-jana
run-jtest-plugin:
runs-on: [ self-hosted, macOS ]
needs: build-n-install-jana
steps:
- name: run jtest plugin
run: |
export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/Darwin/plugins
ls $JANA_PLUGIN_PATH
$GITHUB_WORKSPACE/Darwin/bin/jana -PPLUGINS=JTest -Pjana:nevents=100
run-jana-tests:
runs-on: [ self-hosted, macOS ]
needs: build-n-install-jana
steps:
- name: run jana tests
run: $GITHUB_WORKSPACE/Darwin/bin/jana-unit-tests