From c24687856daf5a6a3a836e033a0dc4f47097fd23 Mon Sep 17 00:00:00 2001 From: Stern <70122891+SternXD@users.noreply.github.com> Date: Mon, 24 Jun 2024 16:32:12 -0400 Subject: [PATCH 1/5] Create winrt.yml --- .github/workflows/winrt.yml | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/winrt.yml diff --git a/.github/workflows/winrt.yml b/.github/workflows/winrt.yml new file mode 100644 index 0000000000000..e8defd7f80faa --- /dev/null +++ b/.github/workflows/winrt.yml @@ -0,0 +1,64 @@ +name: Windows UWP Builds + +on: + push: + branches: + - '*' + pull_request: + branches: + - uwp + +jobs: + # MSBUILD + lint_vs_proj_files: + name: Lint VS Project Files + runs-on: windows-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Verify VS Project Files + run: .github\workflows\scripts\windows\validate-vs-filters.ps1 + + winrt-build-avx2: + name: Building WinRT (AVX2) + needs: lint_vs_proj_files + runs-on: windows-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v2 + + - name: Setup NuGet.exe + uses: NuGet/setup-nuget@v2 + with: + nuget-version: latest + + - name: Download Patches + shell: cmd + run: | + cd bin/resources + aria2c -Z "https://github.com/PCSX2/pcsx2_patches/releases/tag/latest/download/patches.zip" + + - name: Download Dependencies + shell: cmd + run: | + aria2c -Z "https://github.com/PCSX2/pcsx2-windows-dependencies/releases/download/latest-windows-dependencies/pcsx2-windows-dependencies.7z" + - name: Extract some files + run: 7z x pcsx2-windows-dependencies.7z + + - name: Move files to root + run: mv pcsx2-windows-dependencies/deps/* + + - name: Build project + run: | + msbuild PCSX2_qt.sln /m /p:PlatformToolset=v143 /p:Platform=x64 /p:Configuration="Release AVX2" /p:AppxPackageSigningEnabled=true /p:PackageCertificateKeyFile="xbsx2-winrt_TemporaryKey.pfx" /t:restore,build /p:RestorePackagesConfig=true + - name: Upload Builds + uses: actions/upload-artifact@v4 + with: + name: XBSX2.0 Nightly Build (AVX2) + path: AppPackages/xbsx2/ From c6518056c5c74d454e82b4f194afe07967813a28 Mon Sep 17 00:00:00 2001 From: Stern <70122891+SternXD@users.noreply.github.com> Date: Mon, 24 Jun 2024 16:33:53 -0400 Subject: [PATCH 2/5] Update winrt.yml --- .github/workflows/winrt.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/winrt.yml b/.github/workflows/winrt.yml index e8defd7f80faa..e2d19363baa14 100644 --- a/.github/workflows/winrt.yml +++ b/.github/workflows/winrt.yml @@ -27,8 +27,6 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v4 - with: - submodules: recursive - name: Add MSBuild to PATH uses: microsoft/setup-msbuild@v2 From e027bed46a5e86041e00a273d78be2adb192667a Mon Sep 17 00:00:00 2001 From: Stern <70122891+SternXD@users.noreply.github.com> Date: Mon, 24 Jun 2024 16:44:54 -0400 Subject: [PATCH 3/5] Update winrt.yml --- .github/workflows/winrt.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/winrt.yml b/.github/workflows/winrt.yml index e2d19363baa14..31590c21264ee 100644 --- a/.github/workflows/winrt.yml +++ b/.github/workflows/winrt.yml @@ -50,8 +50,7 @@ jobs: run: 7z x pcsx2-windows-dependencies.7z - name: Move files to root - run: mv pcsx2-windows-dependencies/deps/* - + run: mv pcsx2-windows-dependencies/deps/* . - name: Build project run: | msbuild PCSX2_qt.sln /m /p:PlatformToolset=v143 /p:Platform=x64 /p:Configuration="Release AVX2" /p:AppxPackageSigningEnabled=true /p:PackageCertificateKeyFile="xbsx2-winrt_TemporaryKey.pfx" /t:restore,build /p:RestorePackagesConfig=true From 6eafe9285f979ad03825ded0a1d329786d7c9a7e Mon Sep 17 00:00:00 2001 From: izzy2lost Date: Mon, 24 Jun 2024 17:12:26 -0400 Subject: [PATCH 4/5] Update winrt.yml --- .github/workflows/winrt.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/winrt.yml b/.github/workflows/winrt.yml index 31590c21264ee..251bc7296f287 100644 --- a/.github/workflows/winrt.yml +++ b/.github/workflows/winrt.yml @@ -47,10 +47,8 @@ jobs: run: | aria2c -Z "https://github.com/PCSX2/pcsx2-windows-dependencies/releases/download/latest-windows-dependencies/pcsx2-windows-dependencies.7z" - name: Extract some files - run: 7z x pcsx2-windows-dependencies.7z + run: 7z x pcsx2-windows-dependencies.7z -o"./" - - name: Move files to root - run: mv pcsx2-windows-dependencies/deps/* . - name: Build project run: | msbuild PCSX2_qt.sln /m /p:PlatformToolset=v143 /p:Platform=x64 /p:Configuration="Release AVX2" /p:AppxPackageSigningEnabled=true /p:PackageCertificateKeyFile="xbsx2-winrt_TemporaryKey.pfx" /t:restore,build /p:RestorePackagesConfig=true From 9e4a749c5dd5aea1c92068077fda1052456881b9 Mon Sep 17 00:00:00 2001 From: Stern <70122891+SternXD@users.noreply.github.com> Date: Mon, 24 Jun 2024 17:33:35 -0400 Subject: [PATCH 5/5] Add files via upload