ccpp_mac_debug.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: C/C++ debug macos
  2. on:
  3. push:
  4. branches:
  5. - debug_macos
  6. jobs:
  7. build:
  8. runs-on: macos-12
  9. steps:
  10. - uses: actions/checkout@v2
  11. with:
  12. ref: 'debug_macos'
  13. - name: build deps & slicer
  14. run: ./BuildMacOS.sh -b
  15. - name: copy zstd
  16. 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
  17. - name: relink zstd
  18. 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 }}
  19. - name: create the dmg
  20. run: |
  21. hdiutil create -ov -fs HFS+ -volname ${{ github.event.repository.name }} -srcfolder build/pack/${{ github.event.repository.name }} temp.dmg
  22. hdiutil convert temp.dmg -format UDZO -o ${{ github.event.repository.name }}.dmg
  23. - name: tar the pack
  24. working-directory: ./build
  25. run: ls
  26. - name: Upload artifact
  27. uses: actions/upload-artifact@v1.0.0
  28. with:
  29. name: nightly_macos_debug.dmg
  30. path: build/${{ github.event.repository.name }}.dmg
  31. - name: Upload artifact
  32. uses: actions/upload-artifact@v1.0.0
  33. with:
  34. name: nightly_macos.tar
  35. path: ${{ github.event.repository.name }}.tar