-
Notifications
You must be signed in to change notification settings - Fork 24
30 lines (30 loc) · 1.18 KB
/
build-artifact.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
name: build-artifact
on: push
env:
commithash: ""
jobs:
build-matrix:
runs-on: windows-2022
strategy:
matrix:
platform: [x64, Win32]
configuration: [Release, Debug, ASAN-Release, ASAN-Debug]
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Set commit hash variable
shell: powershell
run: echo "commithash=$(git describe --tags)" >> $env:GITHUB_ENV
- name: Build program
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
call msbuild -m:5 -nologo -p:Configuration="${{ matrix.configuration }}" -p:Platform="${{ matrix.platform }}"
if %ERRORLEVEL%==1 exit %ERRORLEVEL%
call release.bat ${{ matrix.configuration }} ${{ matrix.platform }} ${{ env.commithash }}_${{ github.run_id }}
- name: Upload binaries
uses: actions/upload-artifact@master
with:
name: Dn-FamiTracker_${{ env.commithash }}_${{ github.run_id }}_${{ matrix.platform }}_${{ matrix.configuration }}
path: distribute/*_${{ matrix.platform }}_${{ matrix.configuration }}.7z