-
Notifications
You must be signed in to change notification settings - Fork 47
40 lines (31 loc) · 940 Bytes
/
mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: mac-build
on: [push, pull_request]
jobs:
mac-build-gui:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: 5.14.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@v2
with:
name: Seg3DMacInstaller
path: bin/Seg3D/Seg3D2-2.*-Darwin.pkg