apple silicon build fix #70
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: C/C++ debug macos | |
on: | |
push: | |
branches: | |
- debug_macos | |
jobs: | |
build: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: 'debug_macos' | |
- name: build deps & slicer | |
run: ./BuildMacOS.sh -b | |
- name: copy zstd | |
run: cp /usr/local/opt/zstd/lib/libzstd.1.dylib ./build/pack/${{ github.event.repository.name }}/${{ github.event.repository.name }}.app/Contents/MacOS/libzstd.1.dylib | |
- name: relink zstd | |
run: install_name_tool -change /usr/local/opt/zstd/lib/libzstd.1.dylib @executable_path/libzstd.1.dylib ./build/pack/${{ github.event.repository.name }}/${{ github.event.repository.name }}.app/Contents/MacOS/${{ github.event.repository.name }} | |
- name: create the dmg | |
run: | | |
hdiutil create -ov -fs HFS+ -volname ${{ github.event.repository.name }} -srcfolder build/pack/${{ github.event.repository.name }} temp.dmg | |
hdiutil convert temp.dmg -format UDZO -o ${{ github.event.repository.name }}.dmg | |
- name: tar the pack | |
working-directory: ./build | |
run: ls | |
- name: Upload artifact | |
uses: actions/upload-artifact@v1.0.0 | |
with: | |
name: nightly_macos_debug.dmg | |
path: build/${{ github.event.repository.name }}.dmg | |
- name: Upload artifact | |
uses: actions/upload-artifact@v1.0.0 | |
with: | |
name: nightly_macos.tar | |
path: ${{ github.event.repository.name }}.tar |