mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 16:14:38 +00:00
68 lines
2.1 KiB
YAML
Executable File
68 lines
2.1 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: Install dependencies
|
|
run: |
|
|
sh install/linux/linux_setup_env_ubuntu.sh
|
|
- name: Setup env variables
|
|
id: envs
|
|
shell: bash
|
|
run: |
|
|
echo ::set-output name=date::"$(date +%Y.%m)"
|
|
- name: Build MeshLab
|
|
run: |
|
|
sh install/linux/linux_build.sh
|
|
- name: Deploy MeshLab
|
|
run : |
|
|
sh install/linux/linux_appimage.sh
|
|
mv distrib/*.AppImage .
|
|
- name: Upload Meshlab Portable
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: meshlab_linux_portable
|
|
path: distrib/
|
|
- name: Upload Meshlab AppImage
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: meshlab_linux_appimage
|
|
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: Instal dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get 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: Configure
|
|
run: |
|
|
cmake src/ -G Ninja
|
|
- name: Build MeshLab
|
|
run: ninja -C .
|
|
|