-
Notifications
You must be signed in to change notification settings - Fork 833
100 lines (97 loc) · 3.21 KB
/
BuildMeshLab.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: BuildMeshLab
on:
[push, pull_request]
env:
QT_VERSION: 5.15.2
jobs:
linux_build:
name: Build MeshLab
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-18.04', 'macos-latest', 'windows-latest']
precision: [single_precision, double_precision]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
cache: true
version: ${{ env.QT_VERSION }}
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
bash scripts/${{ runner.os }}/0_setup_env.sh --dont_install_qt --dont_install_cgal_and_boost
#needed by qt 5.15 on linux
sudo apt-get install libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-render-util0-dev libxcb-xinerama0-dev
- name: Install macOS dependencies
if: runner.os == 'macOS'
run: |
brew install llvm libomp cgal xerces-c
npm install -g appdmg
- name: Install Windows dependencies
if: runner.os == 'Windows'
shell: bash
run: |
choco install ccache ninja wget nsis
- name: Setup env variables
id: envs
shell: bash
run: |
if [ "${{matrix.precision}}" == "double_precision" ]; then
echo "artifact_suffix=_double" >> $GITHUB_OUTPUT
else
echo "artifact_suffix=" >> $GITHUB_OUTPUT
fi
- name: Cache external libraries sources
id: cache-ext-libs
uses: actions/cache@v3
with:
path: src/external/downloads/*
key: ${{ runner.os }}-external-libraries
- name: Ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ runner.os }}-${{ github.ref }}-${{ matrix.precision }}
- name: Configure and Build
shell: bash
run: |
bash scripts/${{ runner.os }}/1_build.sh --${{ matrix.precision }} --nightly --ccache
- name: Deploy
shell: bash
run: |
bash scripts/${{ runner.os }}/2_deploy.sh
- name: Packaging
shell: bash
run: |
bash scripts/${{ runner.os }}/3_pack.sh
- name: Upload MeshLab Portable
uses: actions/upload-artifact@v3
with:
name: MeshLab_${{ runner.os }}_portable${{steps.envs.outputs.artifact_suffix}}
path: install/
- name: Upload MeshLab Packages
uses: actions/upload-artifact@v3
with:
name: MeshLab_${{ runner.os }}_packages${{steps.envs.outputs.artifact_suffix}}
path: packages/MeshLab*
#todo: try deb when ubuntu16.04 won't be required anymore by linuxdeployqt...
#- name: Build deb package
# uses: jiro4989/build-deb-action@v2
# with:
# package: MeshLab
# package_root: install
# maintainer: cnr-isti-vclab
# version: ${{steps.envs.outputs.version}} # refs/tags/v*.*.*
# arch: 'amd64'
# desc: 'MeshLab ${{steps.envs.outputs.version}} deb package.'
#- name: Upload MeshLab deb
# uses: actions/upload-artifact@v3
# with:
# name: meshlab_linux_deb${{steps.envs.outputs.artifact_suffix}}
# path: MeshLab_${{steps.envs.outputs.version}}_amd64.deb