ccpp_mac_debug.yml 1.8 KB

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