123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- name: C/C++ Debug macos
- on:
- push:
- branches:
- - debug_macos
- jobs:
- build_dep:
- runs-on: macos-13
- steps:
- - uses: actions/checkout@v3
- - name: mkdir in deps
- run: mkdir deps/build
- - name: update automake for mpfr
- run: |
- curl -O -L http://ftpmirror.gnu.org/automake/automake-1.16.5.tar.gz
- tar -xzf automake-1.16.5.tar.gz
- cd automake-*
- ./configure
- make
- sudo make install
- automake --version
- - name: dep cache
- id: cache-action
- uses: actions/cache@v3
- with:
- key: macos_intel_debug_2.7
- path: deps/build/destdir
- - if: steps.cache-action.outputs.cache-hit != 'true'
- name: build deps if new cache
- run: ./BuildMacOS.sh -bd
- build:
- runs-on: macos-13
- needs: build_dep
- steps:
- - uses: actions/checkout@v3
- - name: check autoconf version
- run: autoconf --version
- - name: update automake for mpfr
- run: |
- curl -O -L http://ftpmirror.gnu.org/automake/automake-1.16.5.tar.gz
- tar -xzf automake-1.16.5.tar.gz
- cd automake-*
- ./configure
- make
- sudo make install
- automake --version
- - name: dep cache
- id: cache-action
- uses: actions/cache@v3
- with:
- key: macos_intel_debug_2.7
- path: deps/build/destdir
- - name: build slicer
- run: ./BuildMacOS.sh -bsiv
- - name: Upload artifact
- uses: actions/upload-artifact@v4
- with:
- name: debug_${{ github.event.repository.name }}-macOS-intel.tgz
- path: build/${{ github.event.repository.name }}-macOS-intel.tgz
- - name: Upload artifact
- uses: actions/upload-artifact@v4
- with:
- name: debug_${{ github.event.repository.name }}-macOS-intel.dmg
- path: build/${{ github.event.repository.name }}-macOS-intel.dmg
|