ccpp_mac_debug.yml 2.0 KB

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