mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 08:09:39 +00:00
72 lines
2.4 KiB
YAML
Executable File
72 lines
2.4 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: Checkout submodules
|
|
shell: bash
|
|
run: |
|
|
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
|
|
git submodule sync --recursive
|
|
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
|
|
- name: Installing dependencies
|
|
run: |
|
|
sudo apt install -y qt5-default qttools5-dev-tools qtscript5-dev libqt5xmlpatterns5-dev mesa-common-dev libglu1-mesa-dev lib3ds-dev libglew-dev libeigen3-dev libopenctm-dev libgmp-dev libqhull-dev
|
|
- name: Setting env variables
|
|
id: envs
|
|
shell: bash
|
|
run: |
|
|
echo ::set-output name=date::"$(date +%Y.%m)"
|
|
- name: Compiling MeshLab
|
|
run: |
|
|
cd src/
|
|
qmake
|
|
make -j4
|
|
- name: Creating Meshlab Portable ZIP
|
|
run : |
|
|
cd install/linux
|
|
./linux_install.sh
|
|
cd ../../distrib/
|
|
mv *.AppImage ../MeshLab${{steps.envs.outputs.date}}-linux.AppImage
|
|
- name: Uploading Meshlab Portable
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: meshlab_portable_linux
|
|
path: distrib/
|
|
- name: Uploading Meshlab AppImage
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: meshlab_linux
|
|
path: MeshLab${{steps.envs.outputs.date}}-linux.AppImage
|
|
|
|
|
|
ubuntu_build_cmake:
|
|
name: Build MeshLab (Ubuntu - CMake)
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Checkout submodules
|
|
shell: bash
|
|
run: |
|
|
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
|
|
git submodule sync --recursive
|
|
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
|
|
- 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
|
|
- name: Configuring
|
|
run: |
|
|
cmake src/ -G Ninja
|
|
- name: Compiling meshlab
|
|
run: ninja -C .
|
|
|