Skip to content

Commit 177039a

Browse files
committed
Update release gen
1 parent 7704167 commit 177039a

File tree

1 file changed

+36
-29
lines changed

1 file changed

+36
-29
lines changed

.github/workflows/release_generator.yml

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -47,33 +47,33 @@ jobs:
4747
name: RELEASE.md
4848
path: ./RELEASE.md
4949

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
7777

7878
create-windows-binary:
7979
runs-on: windows-latest
@@ -93,9 +93,15 @@ jobs:
9393
shell: bash
9494
run: cmake --build . --config $CMAKE_BUILD_TYPE --target signet
9595

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+
96102
- name: Zip executable
97103
working-directory: ${{github.workspace}}/build
98-
run: dir && 7z a signet_windows.zip signet.exe
104+
run: 7z a signet_windows.zip signet.exe
99105

100106
- uses: actions/upload-artifact@v2
101107
with:
@@ -104,7 +110,7 @@ jobs:
104110

105111
generate-release:
106112
runs-on: ubuntu-latest
107-
needs: [create-linux-binary, create-windows-binary]
113+
needs: [create-linux-binary, create-windows-binary, create-macos-binary]
108114
steps:
109115
- name: Get Artifacts
110116
uses: actions/download-artifact@v2
@@ -121,5 +127,6 @@ jobs:
121127
RELEASE.md/*
122128
signet_linux.zip/*
123129
signet_windows.zip/*
130+
signet_macos.zip/*
124131
env:
125132
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)