mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-14 16:44:37 +00:00
61 lines
1.9 KiB
YAML
Executable File
61 lines
1.9 KiB
YAML
Executable File
name: CompileUbuntu
|
|
|
|
on:
|
|
[push, pull_request]
|
|
|
|
jobs:
|
|
ubuntu_build:
|
|
name: Build MeshLab (Ubuntu)
|
|
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 lib3ds-dev libglew-dev libeigen3-dev libopenctm-dev libgmp-dev
|
|
cd ..
|
|
git clone --depth=1 --branch=devel https://github.com/cnr-isti-vclab/vcglib.git
|
|
cd meshlab
|
|
- name: Setting env variables
|
|
shell: bash
|
|
run: |
|
|
echo '::set-env name=QT_BASE_DIR::/opt/qt512'
|
|
echo '::set-env name=QTDIR::/opt/qt512'
|
|
echo '::add-path::/opt/qt512/bin'
|
|
echo '::set-env name=LD_LIBRARY_PATH::/opt/qt512/lib/x86_64-linux-gnu:/opt/qt512/lib:${{env.LD_LIBRARY_PATH}}'
|
|
echo '::set-env name=PKG_CONFIG_PATH::/opt/qt512/lib/pkgconfig:${{env.PKG_CONFIG_PATH}}'
|
|
- name: Compiling external
|
|
run: |
|
|
cd src/external
|
|
qmake external.pro
|
|
make -j4
|
|
- name: Compiling MeshLab
|
|
run: |
|
|
cd src/
|
|
qmake meshlab_full.pro
|
|
make -j4
|
|
|
|
ubuntu_build_cmake:
|
|
name: Build MeshLab (Ubuntu - CMake)
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Installing dependencies
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install -y qt5-default qtscript5-dev libqt5xmlpatterns5-dev mesa-common-dev libglu1-mesa-dev lib3ds-dev libglew-dev libeigen3-dev libopenctm-dev libgmp-dev libqhull-dev cmake ninja-build
|
|
cd ..
|
|
git clone --depth=1 --branch=devel https://github.com/cnr-isti-vclab/vcglib.git
|
|
cd meshlab
|
|
- name: Configuring
|
|
run: |
|
|
mkdir -p src/build
|
|
cd src/build
|
|
cmake .. -G Ninja
|
|
- name: Compiling meshlab
|
|
run: ninja -C src/build
|
|
|