-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (52 loc) · 1.58 KB
/
unix build.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
name: Linux Build & Unit Tests
on: [push]
jobs:
build:
name: ubuntu-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: install wxwidgets
run: |
export DISPLAY=:0.0
sudo apt install xvfb cmake libtbb-dev libgtk-3-0 libgtk-3-dev
git clone https://github.com/wxWidgets/wxWidgets.git --recurse-submodules
cd wxWidgets
mkdir buildgtk
cd buildgtk
../configure --with-gtk
make -j4
sudo make install
sudo ldconfig
cd ..
cd ..
cmake ./
make -j4
- name: build
run: |
cd ..
cd Wisteria-Dataviz
cmake ./
make -j4
- name: run tests
run: |
cd ..
git clone https://github.com/catchorg/Catch2.git
cd Wisteria-Dataviz/tests
cmake ./
make -j4
cd bin
./WisteriaTestRunner --reporter JUnit::out=WDV-junit.xml
cat WDV-junit.xml
errors=$(cat WDV-junit.xml | grep -Po '(errors)="\K[^"]*')
failures=$(cat WDV-junit.xml | grep -Po '(failures)="\K[^"]*')
echo "Error count is: ${errors}"
echo "Failure count is: ${failures}"
if [ "$errors" -gt 0 ]; then
exit 1
fi
if [ "$failures" -gt 0 ]; then
exit 1
fi