Add Windows CI build job
This commit is contained in:
parent
834ff4338f
commit
c76f72df9e
1 changed files with 27 additions and 0 deletions
27
.github/workflows/win-build.yml
vendored
Normal file
27
.github/workflows/win-build.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: "Windows build"
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
win-build:
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p "bin/Any CPU/Release"
|
||||
cp -v -r UI/Dependencies "bin/Any CPU/Release"
|
||||
git describe --tags --dirty --always >"bin\Any CPU\Release\Dependencies\DevBuild.txt"
|
||||
- name: Build core
|
||||
working-directory: bin
|
||||
shell: cmd
|
||||
run: |
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
||||
msbuild ..\Mesen-S.sln /t:Build /p:Configuration=Release /p:Platform=x64
|
||||
copy "x64\Release\MesenSCore.dll" "Any CPU\Release\Dependencies\MesenSCore.x64.dll"
|
||||
msbuild ..\Mesen-S.sln /t:Build /p:Configuration=Release /p:Platform="Any CPU" /property:DefineConstants="HIDETESTMENU;AUTOBUILD"
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: Mesen-S-win
|
||||
path: bin/Any CPU/Release/Mesen-S.exe
|
Loading…
Add table
Reference in a new issue