ccpp_mac_arm_debug.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. name: C/C++ Debug arm macos
  2. on:
  3. push:
  4. branches:
  5. - debug_macos
  6. jobs:
  7. build_dep:
  8. runs-on: macos-14
  9. steps:
  10. - uses: actions/checkout@v3
  11. - name: install autoconf
  12. run: brew install autoconf
  13. - name: check autoconf version
  14. run: autoconf --version
  15. - name: update automake for mpfr
  16. run: |
  17. curl -O -L http://ftpmirror.gnu.org/automake/automake-1.16.5.tar.gz
  18. tar -xzf automake-1.16.5.tar.gz
  19. cd automake-*
  20. ./configure
  21. make
  22. sudo make install
  23. automake --version
  24. - name: mkdir in deps
  25. run: mkdir deps/build
  26. - name: dep cache
  27. id: cache-action
  28. uses: actions/cache@v3
  29. with:
  30. key: macos_arm_debug_2.7
  31. path: deps/build/destdir
  32. - if: steps.cache-action.outputs.cache-hit != 'true'
  33. name: build deps if new cache
  34. run: ./BuildMacOS.sh -bad
  35. build:
  36. runs-on: macos-14
  37. needs: build_dep
  38. steps:
  39. - uses: actions/checkout@v3
  40. - name: dep cache
  41. id: cache-action
  42. uses: actions/cache@v3
  43. with:
  44. key: macos_arm_debug_2.7
  45. path: deps/build/destdir
  46. - name: build slicer
  47. run: ./BuildMacOS.sh -basiv
  48. - name: Upload artifact
  49. uses: actions/upload-artifact@v4
  50. with:
  51. name: nightly_${{ github.event.repository.name }}-macOS-arm.dmg
  52. path: build/${{ github.event.repository.name }}-macOS-arm.dmg
  53. - name: Upload artifact
  54. uses: actions/upload-artifact@v4
  55. with:
  56. name: nightly_${{ github.event.repository.name }}-macOS-arm.tgz
  57. path: build/${{ github.event.repository.name }}-macOS-arm.tgz