Simplify build system and add python as dependency #251
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: mac-build | |
| on: [push, pull_request] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| mac-build-gui: | |
| runs-on: macos-10.15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Install Qt | |
| uses: jurplel/install-qt-action@v3 | |
| with: | |
| version: 5.15.2 | |
| target: desktop | |
| host: mac | |
| install-deps: true | |
| #- name: Prepare | |
| # run: | | |
| # ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/ /usr/local/include/X11 | |
| - name: make | |
| run: | | |
| ./build.sh \ | |
| -DQt5_PATH="${Qt5_Dir}" | |
| - name: Package | |
| working-directory: bin/Seg3D | |
| run: | | |
| make package | |
| chmod +x repair_package.sh | |
| ./repair_package.sh | |
| - name: Upload installer | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: Seg3DMacInstaller | |
| path: bin/Seg3D/Seg3D2-2.*-Darwin.pkg |