github action for compiling meshlab on ubuntu-gcc added

This commit is contained in:
alemuntoni 2019-11-25 15:54:54 +01:00
parent 4cba051a0e
commit 8850deac7a
3 changed files with 42 additions and 2 deletions

40
.github/workflows/ubuntu-latest-gcc.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: UbuntuLatestGCC
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Installing dependencies
run: |
sudo add-apt-repository ppa:beineri/opt-qt-5.12.0-bionic -y
sudo apt update
sudo apt install -y qt512base qt512script qt512xmlpatterns mesa-common-dev libglu1-mesa-dev
cd ..
git clone --depth=1 --branch=devel https://github.com/cnr-isti-vclab/vcglib.git
cd meshlab
- name: Compiling external
run: |
export QT_BASE_DIR=/opt/qt512
export QTDIR=$QT_BASE_DIR
export PATH=$QT_BASE_DIR/bin:$PATH
export LD_LIBRARY_PATH=$QT_BASE_DIR/lib/x86_64-linux-gnu:$QT_BASE_DIR/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=$QT_BASE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
cd src/external
qmake external.pro
make -j4
- name: Compiling meshlab
run: |
#need to reset the qt env variables here...
export QT_BASE_DIR=/opt/qt512
export QTDIR=$QT_BASE_DIR
export PATH=$QT_BASE_DIR/bin:$PATH
export LD_LIBRARY_PATH=$QT_BASE_DIR/lib/x86_64-linux-gnu:$QT_BASE_DIR/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=$QT_BASE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
cd src/
qmake meshlab_full.pro
make -j4

View File

@ -12,7 +12,7 @@ win32-msvc2015:DEFINES += _CRT_SECURE_NO_WARNINGS
win32-msvc2017:DEFINES += _CRT_SECURE_NO_WARNINGS
win32-msvc:DEFINES += _CRT_SECURE_NO_WARNINGS
linux:DESTDIR = $$EXTERNAL_BASE_PATH/lib/linux
linux:DESTDIR = $$EXTERNAL_BASE_PATH/lib/linux-g++
unix:CONFIG(release, debug|release) {
DEFINES *= NDEBUG

View File

@ -154,7 +154,7 @@ win32-g++:LIBS += -L../external/lib/win32-gcc -ljhead -L../distrib -lcom
# win32-g++:release:LIBS += -L../common/release -lcommon
#}
linux:LIBS += -L$$PWD/../external/lib/linux -ljhead -L../distrib -lcommon -lGLU
linux:LIBS += -L$$PWD/../external/lib/linux-g++ -ljhead -L../distrib -lcommon -lGLU
linux:QMAKE_RPATHDIR += ../distrib
# uncomment in your local copy only in emergency cases.