From 47cbe75b4893bf9b11480199bd42118ee51d44d5 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 25 Nov 2019 17:15:32 +1000 Subject: [PATCH] Create windows-build.yml --- .github/workflows/windows-build.yml | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/windows-build.yml diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml new file mode 100644 index 000000000..362544c35 --- /dev/null +++ b/.github/workflows/windows-build.yml @@ -0,0 +1,40 @@ +name: Windows Build + +on: + pull_request: + push: + branches: + - master + +jobs: + build: + + runs-on: windows-2019 + + steps: + - uses: actions/checkout@v1 + with: + submodules: true + + - name: Compile release build + shell: cmd + run: | + call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 + msbuild duckstation.sln -t:Build -p:Platform=x64;Configuration=ReleaseLTCG + + - name: Copy dependencies to binary directory + shell: cmd + run: | + copy /Y dep\msvc\bin64\*.* bin\x64 + + - name: Create zip archive of binary + shell: cmd + run: | + 7z a -t7z duckstation-windows-x64-release.7z .\bin\x64\* + + - name: Upload release archive + uses: actions/upload-artifact@v1 + with: + name: "duckstation-windows-x64-release.7z" + path: "duckstation-windows-x64-release.7z" +