diff --git a/.github/workflows/win-build.yml b/.github/workflows/win-build.yml new file mode 100644 index 0000000..7e592ba --- /dev/null +++ b/.github/workflows/win-build.yml @@ -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