-
Notifications
You must be signed in to change notification settings - Fork 11
44 lines (40 loc) · 1.46 KB
/
MacOSExamples.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
name: MacOSExamples
on: [push, pull_request]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: installing dependencies
run: |
brew install qt@5 cgal llvm
#install libQGLViewer
export QTDIR=/usr/local/opt/qt@5
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=$QTDIR/lib:$PKG_CONFIG_PATH
cd ..
git clone https://github.com/GillesDebunne/libQGLViewer.git
cd libQGLViewer/QGLViewer
qmake
make
make install
cd ..
cd ..
#install libigl
git clone --recursive https://github.com/libigl/libigl
git clone --depth=1 --branch=devel https://github.com/cnr-isti-vclab/vcglib.git
git clone https://github.com/mlivesu/cinolib.git
- name: compiling examples
run: |
export QTDIR=/usr/local/opt/qt@5
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=$QTDIR/lib:$PKG_CONFIG_PATH
export QGLVIEWER_HOME=/usr/local/lib #here is installed QGLViewer.framework
export LIBIGL_HOME=$(pwd)/../libigl
export VCGLIB_HOME=$(pwd)/vcglib
export CINOLIB_HOME=$(pwd)/cinolib
cd examples
qmake examples.pro
make