mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 08:09:39 +00:00
55 lines
1.5 KiB
YAML
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: recursive
|
|
- 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
|