-
Notifications
You must be signed in to change notification settings - Fork 1
95 lines (77 loc) · 2.68 KB
/
integration.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: HighFive_Integration_tests
on:
push:
branches:
- ci_test
pull_request:
branches:
- main
schedule:
- cron: '5 3 * * *'
repository_dispatch:
types: [merge] # event_type set in HighFive integration_trigger.yml
workflow_dispatch:
inputs:
highfive_branch:
description: "HighFive branch to test against"
required: false
default: "v2.x"
type: string
libsonata_branch:
description: "Libsonata branch to test"
required: false
default: "master"
type: string
env:
BUILD_TYPE: RelWithDebInfo
INSTALL_DIR: ${{github.workspace}}/install
jobs:
Integration:
runs-on: ubuntu-latest
env:
HIGHFIVE_BRANCH: ${{ github.event.inputs.highfive_branch }}
LIBSONATA_BRANCH: ${{ github.event.inputs.libsonata_branch }}
steps:
- uses: actions/checkout@v2
- name: "Install libraries"
run: sudo apt-get update && sudo apt-get install libboost-all-dev libhdf5-dev libeigen3-dev
- name: Build HighFive
run: |
HIGHFIVE_BRANCH=${HIGHFIVE_BRANCH:-"v2.x"}
git clone https://github.com/BlueBrain/HighFive.git \
--branch ${HIGHFIVE_BRANCH} --recursive
cd HighFive
CMAKE_OPTIONS=(-DHIGHFIVE_EXAMPLES:BOOL=False \
-DHIGHFIVE_UNIT_TESTS:BOOL=False \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \
-DHIGHFIVE_USE_EIGEN:BOOL=True)
source $GITHUB_WORKSPACE/ci/build.sh
- name: Build and Test MorphIO
run: |
git clone https://github.com/BlueBrain/MorphIO.git --recursive
cd MorphIO
CMAKE_OPTIONS=(-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \
-DEXTERNAL_HIGHFIVE:BOOL=True)
source $GITHUB_WORKSPACE/ci/build.sh
cd build && ctest --output-on-failure
- name: Build and Test libsonata
if: success() || failure()
run: |
HIGHFIVE_BRANCH=${HIGHFIVE_BRANCH:-"v2.x"}
LIBSONATA_BRANCH=${LIBSONATA_BRANCH:-"master"}
git clone https://github.com/BlueBrain/libsonata.git \
--branch ${LIBSONATA_BRANCH} --recursive
cd libsonata
pushd extlib/HighFive
git fetch && git checkout origin/${HIGHFIVE_BRANCH}
popd
CMAKE_OPTIONS=(-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \
-DEXTLIB_FROM_SUBMODULES:BOOL=True)
source $GITHUB_WORKSPACE/ci/build.sh
cd build && ctest --output-on-failure
- name: live debug session on failure
if: failure() && contains(github.event.head_commit.message, 'live-debug-ci')
uses: mxschmitt/action-tmate@v3