forked from cnr-isti-vclab/meshlab
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.44 KB
/
MacOS.yml
File metadata and controls
54 lines (51 loc) · 1.44 KB
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
name: MacOS
on:
[push, pull_request]
jobs:
macos_build:
name: Build MeshLab (MacOS)
runs-on: macos-latest
strategy:
matrix:
precision: [single_precision, double_precision]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install dependencies
run: |
brew install libomp cgal
npm install -g appdmg
- name: Install Qt
uses: jurplel/install-qt-action@v2
- name: Setup env variables
id: envs
shell: bash
run: |
if [ "${{matrix.precision}}" == "double_precision" ]; then
echo ::set-output name=artifact_suffix::"_double"
else
echo ::set-output name=artifact_suffix::""
fi
- name: Configure and Build
shell: bash
run: |
bash scripts/${{ runner.os }}/1_build.sh --${{ matrix.precision }} --nightly
- name: Deploy
shell: bash
run: |
bash scripts/${{ runner.os }}/2_deploy.sh
- name: Create DMG
shell: bash
run: |
bash scripts/${{ runner.os }}/3_dmg.sh
- name: Upload MeshLab Portable
uses: actions/upload-artifact@v2
with:
name: meshlab_macos_portable${{steps.envs.outputs.artifact_suffix}}
path: src/install/MeshLab*.app
- name: Upload DMG
uses: actions/upload-artifact@v2
with:
name: meshlab_macos_dmg${{steps.envs.outputs.artifact_suffix}}
path: src/install/MeshLab*.dmg