-
Notifications
You must be signed in to change notification settings - Fork 834
71 lines (68 loc) · 2.3 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
name: BuildMeshLab
on:
[push, pull_request]
env:
QT_VERSION: 5.15.2
MAC_CERT: ${{secrets.MACOS_CERT_ID}}
MAC_CERT_PSSW: ${{secrets.MACOS_CERTIFICATE_PSSW}}
WIN_CERT: ${{secrets.WIN_CERTIFICATE}}
jobs:
meshlab_build:
name: Build MeshLab
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-20.04', 'macos-13', 'macos-latest', 'windows-latest']
precision: [single_precision, double_precision]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Environment
uses: ./.github/actions/0_setup
with:
qt-version: ${{env.QT_VERSION}}
use-jurpel-qt-action: ${{matrix.os != 'macos-latest'}}
- name: Setup env variables
id: envs
shell: bash
run: |
ARCH=$(uname -m)
if [ "${{matrix.precision}}" == "double_precision" ]; then
echo "artifact_suffix=_double_$ARCH" >> $GITHUB_OUTPUT
else
echo "artifact_suffix=_$ARCH" >> $GITHUB_OUTPUT
fi
if [ "${{matrix.os}}" == "macos-latest" ]; then
echo "build_options=--use_brew_qt" >> $GITHUB_OUTPUT
else
echo "build_options=" >> $GITHUB_OUTPUT
fi
- name: Build
uses: ./.github/actions/1_build
with:
cache-path: src/external/downloads/*
cache-key: external-libraries
build-precision: ${{matrix.precision}}
build-options: ${{steps.envs.outputs.build_options}}
nightly: true
- name: Deploy
uses: ./.github/actions/2_deploy
with:
use-brew-qt: ${{matrix.os == 'macos-latest'}}
mac-certificate: ${{ secrets.MACOS_CERTIFICATE }}
mac-certificate-id: ${{ secrets.MACOS_CERT_ID }}
mac-certificate-pssw: ${{ secrets.MACOS_CERTIFICATE_PSSW }}
win-certificate: ${{ secrets.WIN_CERTIFICATE }}
win-certificate-pssw: ${{ secrets.WIN_CERTIFICATE_PSSW }}
- name: Upload MeshLab Portable
uses: actions/upload-artifact@v4
with:
name: MeshLab_${{ runner.os }}_portable${{steps.envs.outputs.artifact_suffix}}
path: install/
- name: Upload MeshLab Packages
uses: actions/upload-artifact@v4
with:
name: MeshLab_${{ runner.os }}_packages${{steps.envs.outputs.artifact_suffix}}
path: packages/MeshLab*