alemuntoni e82fd1d6f8 Merge remote-tracking branch 'origin/master' into e57
# Conflicts:
#	.github/workflows/CreateRelease.yml
#	.github/workflows/MacOS.yml
#	scripts/Linux/2_deploy.sh
#	scripts/macOS/2_deploy.sh
#	src/external/external.cmake
#	src/external/u3d.cmake
2021-06-08 17:36:34 +02:00

55 lines
1.5 KiB
YAML

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 xerces-c
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