-
Notifications
You must be signed in to change notification settings - Fork 3
73 lines (61 loc) · 1.77 KB
/
butool-ci.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
name: BUTool StatusDisplay CI
# Control when to run the CI job
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout BUTool repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Checkout GenericDSAT plugin and submodules
run: |
git clone --branch develop \
--recursive \
--depth 1 \
--shallow-submodules \
https://gitlab.com/BU-EDF/GenericDSATDevice_plugin.git
- name: Install dependencies
run: |
ls -lah .
echo "Working directory: ${PWD}"
sudo apt install \
libboost-regex-dev \
build-essential \
zlib1g-dev \
libreadline-dev \
libboost-dev \
libboost-program-options-dev \
libncurses5-dev
- name: Build BUTool
run: make
- name: Build GenericDSAT plugin
working-directory: ./GenericDSATDevice_plugin
run: |
BUTOOL_PATH=$(realpath ../)
echo "Setting up environment with BUTOOL_PATH=${BUTOOL_PATH}"
source env.sh ${BUTOOL_PATH}
make
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> ${GITHUB_ENV}
echo "BUTOOL_PATH=${BUTOOL_PATH}" >> ${GITHUB_ENV}
- name: Run StatusDisplay test
working-directory: ./GenericDSATDevice_plugin
env:
BUTOOL_PATH: ${{ env.BUTOOL_PATH }}
LD_LIBRARY_PATH: ${{ env.LD_LIBRARY_PATH }}
run: |
./run_BUTool_test.sh
- name: Cleanup GenericDSAT plugin
working-directory: ./GenericDSATDevice_plugin
run: make clean
- name: Cleanup BUTool
run: make clean