Build AutoRemesher for macOS #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |