From 07c4c70f6fa1912fd519365abbc911f6c2c1b0c0 Mon Sep 17 00:00:00 2001 From: Nayla Date: Tue, 18 Apr 2023 17:21:07 -0400 Subject: [PATCH] Update windows.yml --- .github/workflows/windows.yml | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index b14689ac31..41415904fa 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -6,7 +6,9 @@ name: Windows CI # events but only for the master branch on: push: + branches: [ master ] pull_request: + branches: [ master ] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -19,30 +21,20 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - # Install 7zip - - name: Install 7zip - run: choco install 7zip # Submoudle - name: Checkout Submodles run: git submodule update --init --recursive - # Run CMake - - name: Run CMake - run: mkdir build && cd build && cmake .. -G Ninja -DCPACK_PACKAGE_CONTACT="Mario Party Netplay" - # Build Project - - name: Run Make - run: cd build && ninja -j8 + # Setup MSBuild For Later Usage + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v1.0.2 + with: + vs-version: '16.6.2' + # Run MSBuild + - name: Build Solution + run: msbuild "D:\a\Dolphin-MPN-src\Dolphin-MPN-src\Source\dolphin-emu.sln" /verbosity:minimal /property:Configuration=Release /property:Platform=x64 # Upload Artifact - name: Upload Build Artifact uses: actions/upload-artifact@v2 with: name: DolphinMPN-win32 - path: D:\a\dolphin-mpn-src\dolphin-mpn-src\Binary\x64 - # Zip Artifact - - name: Zip Artifact - run: 7z a D:/DolphinMPN-win32 D:/a/dolphin-mpn-src/dolphin-mpn-src/Binary/x64/* - # New Release - - name: New Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - files: D:/DolphinMPN-win32.7z + path: D:\a\Dolphin-MPN-src\Dolphin-MPN-src\Binary\x64