@@ -47,33 +47,33 @@ jobs:
47
47
name : RELEASE.md
48
48
path : ./RELEASE.md
49
49
50
- # macos:
51
- # runs-on: macos-latest
52
- # steps:
53
- # - uses: actions/checkout@v2
54
-
55
- # - name: Create Build Environment
56
- # run: cmake -E make_directory ${{github.workspace}}/build
57
-
58
- # - name: Configure CMake Using Default Compiler
59
- # shell: bash
60
- # working-directory: ${{github.workspace}}/build
61
- # run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DDEPLOYMENT_BUILD:BOOL=YES
62
-
63
- # - name: Build
64
- # working-directory: ${{github.workspace}}/build
65
- # shell: bash
66
- # run: cmake --build . --config Debug --target signet
67
-
68
- # - name: Zip executable
69
- # working-directory: ${{github.workspace}}/build
70
- # shell: bash
71
- # run: zip signet_macos signet
72
-
73
- # - uses: actions/upload-artifact@v2
74
- # with:
75
- # name: signet_macos.zip
76
- # path: build/signet_macos.zip
50
+ create- macos-binary :
51
+ runs-on : macos-latest
52
+ steps :
53
+ - uses : actions/checkout@v2
54
+
55
+ - name : Create Build Environment
56
+ run : cmake -E make_directory ${{github.workspace}}/build
57
+
58
+ - name : Configure CMake Using Default Compiler
59
+ shell : bash
60
+ working-directory : ${{github.workspace}}/build
61
+ run : cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DDEPLOYMENT_BUILD:BOOL=YES
62
+
63
+ - name : Build
64
+ working-directory : ${{github.workspace}}/build
65
+ shell : bash
66
+ run : cmake --build . --config $CMAKE_BUILD_TYPE --target signet
67
+
68
+ - name : Zip executable
69
+ working-directory : ${{github.workspace}}/build
70
+ shell : bash
71
+ run : zip signet_macos signet
72
+
73
+ - uses : actions/upload-artifact@v2
74
+ with :
75
+ name : signet_macos.zip
76
+ path : build/signet_macos.zip
77
77
78
78
create-windows-binary :
79
79
runs-on : windows-latest
93
93
shell : bash
94
94
run : cmake --build . --config $CMAKE_BUILD_TYPE --target signet
95
95
96
+ - name : Copy executable to build directory
97
+ # When building visual studio projects, it puts the binaries in subdirectories
98
+ shell : bash
99
+ working-directory : ${{github.workspace}}/build
100
+ run : mv $CMAKE_BUILD_TYPE/signet.exe ./signet.exe
101
+
96
102
- name : Zip executable
97
103
working-directory : ${{github.workspace}}/build
98
- run : dir && 7z a signet_windows.zip signet.exe
104
+ run : 7z a signet_windows.zip signet.exe
99
105
100
106
- uses : actions/upload-artifact@v2
101
107
with :
@@ -104,7 +110,7 @@ jobs:
104
110
105
111
generate-release :
106
112
runs-on : ubuntu-latest
107
- needs : [create-linux-binary, create-windows-binary]
113
+ needs : [create-linux-binary, create-windows-binary, create-macos-binary ]
108
114
steps :
109
115
- name : Get Artifacts
110
116
uses : actions/download-artifact@v2
@@ -121,5 +127,6 @@ jobs:
121
127
RELEASE.md/*
122
128
signet_linux.zip/*
123
129
signet_windows.zip/*
130
+ signet_macos.zip/*
124
131
env :
125
132
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments