forked from huxingyi/autoremesher
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (26 loc) · 1.02 KB
/
build-mac.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
name: Build AutoRemesher for macOS
on:
workflow_dispatch:
inputs:
tagName:
description: Tag name for release
required: true
permissions:
contents: write
jobs:
build-mac:
name: Build AutoRemesher for macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
ref: master
- run: NONINTERACTIVE=1 arch --x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- run: arch --x86_64 /usr/local/Homebrew/bin/brew install boost c-blosc cgal cmake gcc make mpfr openvdb qt tbb zlib || true # This returns exit code 1 even if successful - why ??
- run: ./build-mac.sh
timeout-minutes: 60
- run: ditto -c -k --sequesterRsrc --keepParent autoremesher.app autoremesher-${{ github.event.inputs.tagName }}-mac.zip
- uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.tagName }}
files: autoremesher-${{ github.event.inputs.tagName }}-mac.zip