-
Notifications
You must be signed in to change notification settings - Fork 276
65 lines (55 loc) · 1.86 KB
/
ci_linux.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
name: Linux
on: [push]
jobs:
build-linux:
strategy:
matrix:
qt_version: [5.15.2, 6.5.2]
runs-on: ubuntu-latest
name: build-linux-qt${{matrix.qt_version}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{matrix.qt_version}}
cache: true
cache-key-prefix: QtCache
# Actually needed for Qt6
- name: Install dependencies for "xcb" Qt plugin
run: |
sudo apt-get -y install libxcb-cursor0
- name: Install OpenCascade
run: |
sudo apt-get -y install libocct-data-exchange-dev libocct-draw-dev occt-misc
sudo apt-get -y install libtbb2-dev
sudo apt-get -y install libxi-dev
- name: Install Assimp
run: |
sudo apt-get -y install libassimp-dev
- name: Build
run: |
mkdir ${{github.workspace}}/build
cd ${{github.workspace}}/build
cmake --version
cmake .. \
-DMayo_BuildTests=ON \
-DMayo_BuildPluginAssimp=ON
cmake --build . \
--config Release \
--parallel `nproc`
- name: Execute Unit Tests
working-directory: ${{github.workspace}}/build
env:
DISPLAY: :0
run: |
# Install french locale for testing case
echo "fr_FR ISO-8859-15" | sudo tee -a /etc/locale.gen
sudo locale-gen
localectl list-locales
# Start X11 display server
Xvfb $DISPLAY -screen 0 1280x1024x24 &
sleep 5s
# Run tests
./mayo --runtests