ccpp_mac.yml 1.4 KB

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