ccpp_mac.yml 1.9 KB

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