Skip to content

Commit 633eaec

Browse files
authored
Merge pull request #211 from Gumball2415/main
Add Github Actions builds for published releases
2 parents b4e5723 + 085c37e commit 633eaec

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: build-artifact-publish
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build-matrix-publish:
7+
runs-on: windows-2022
8+
strategy:
9+
matrix:
10+
platform: [x64, Win32]
11+
configuration: [Release, Debug]
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Build program
15+
shell: cmd
16+
run: |
17+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
18+
call msbuild -m:5 -nologo -p:Configuration="${{ matrix.configuration }}" -p:Platform="${{ matrix.platform }}"
19+
if %ERRORLEVEL%==1 exit %ERRORLEVEL%
20+
call release.bat ${{ matrix.configuration }} ${{ matrix.platform }}
21+
22+
- name: Upload binaries
23+
uses: actions/upload-artifact@master
24+
with:
25+
name: build-artifacts
26+
path: distribute/*.7z

0 commit comments

Comments
 (0)