meshlab/.github/workflows/CompileUbuntu.yml
2019-12-20 17:45:24 +01:00

68 lines
1.9 KiB
YAML
Executable File

name: CompileUbuntu
on:
[push, pull_request]
jobs:
ubuntu_build:
name: Build MeshLab (Ubuntu)
runs-on: ubuntu-16.04 #in order to deploy, need to use oldest supported version
steps:
- uses: actions/checkout@v2
- name: Installing dependencies
run: |
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
cd ..
git clone --depth=1 --branch=devel https://github.com/cnr-isti-vclab/vcglib.git
cd meshlab
#- name: Setting env variables
# id: envs
# shell: bash
# run: |
# echo ::set-output name=date::"$(date +%Y-%m)"
- name: Compiling external
run: |
cd src/external
qmake external.pro
make -j4
- name: Compiling MeshLab
run: |
cd src/
qmake meshlab_full.pro
make -j4
- name: Creating ZIP
run : |
ls -al src/distrib/
cd src/install/linux
./linux_install.sh
echo "------ Completed!!!"
- name: Uploading ZIP
uses: actions/upload-artifact@v1
with:
name: meshlab_zip
path: src/distrib/
ubuntu_build_cmake:
name: Build MeshLab (Ubuntu - CMake)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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