mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 00:07:24 +00:00
71 lines
1.9 KiB
YAML
71 lines
1.9 KiB
YAML
name: MacOS
|
|
|
|
on:
|
|
[push, pull_request]
|
|
|
|
env:
|
|
QT_VERSION: 5.15.2
|
|
|
|
jobs:
|
|
macos_build:
|
|
name: Build MeshLab (MacOS)
|
|
runs-on: macos-latest
|
|
strategy:
|
|
matrix:
|
|
precision: [single_precision, double_precision]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
- name: Install dependencies
|
|
run: |
|
|
brew install llvm libomp cgal xerces-c
|
|
npm install -g appdmg
|
|
- name: Install Qt
|
|
uses: jurplel/install-qt-action@v3
|
|
with:
|
|
cache: true
|
|
version: ${{ env.QT_VERSION }}
|
|
- 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/ccache-action@v1.2
|
|
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: Create DMG
|
|
shell: bash
|
|
run: |
|
|
bash scripts/${{ runner.os }}/3_pack.sh
|
|
- name: Upload MeshLab Portable
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: meshlab_macos_portable${{steps.envs.outputs.artifact_suffix}}
|
|
path: install/MeshLab*.app
|
|
- name: Upload DMG
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: meshlab_macos_dmg${{steps.envs.outputs.artifact_suffix}}
|
|
path: install/MeshLab*.dmg
|