ccpp_mac.yml 2.0 KB

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