ccpp_mac_rc.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. name: C/C++ Release candidate macos
  2. on:
  3. push:
  4. branches:
  5. - rc
  6. - debug_macos
  7. jobs:
  8. build:
  9. runs-on: macos-12
  10. steps:
  11. - uses: actions/checkout@v3
  12. - name: build deps & slicer
  13. run: ./BuildMacOS.sh
  14. - name: copy zstd
  15. 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
  16. - name: relink zstd
  17. 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 }}
  18. - name: create the dmg
  19. run: |
  20. hdiutil create -ov -fs HFS+ -volname ${{ github.event.repository.name }} -srcfolder "build/pack/${{ github.event.repository.name }}" temp.dmg
  21. hdiutil convert temp.dmg -format UDZO -o ${{ github.event.repository.name }}.dmg
  22. - name: Upload artifact
  23. uses: actions/upload-artifact@v1.0.0
  24. with:
  25. name: rc_macos.app
  26. path: build/pack/${{ github.event.repository.name }}/${{ github.event.repository.name }}.app
  27. - name: Upload artifact
  28. uses: actions/upload-artifact@v1.0.0
  29. with:
  30. name: rc_macos.dmg
  31. path: ${{ github.event.repository.name }}.dmg