(chore:) Update README #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: WinRT SSE4, AVX2 Builds | |
on: | |
push: | |
branches: | |
- uwp | |
pull_request: | |
branches: | |
- uwp | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
configuration: ['Release', 'Release AVX2'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up MSBuild | |
uses: microsoft/setup-msbuild@v2 | |
- name: Set up NuGet | |
uses: NuGet/setup-nuget@v2 | |
- name: Extract version string from AppxManifest | |
id: extract_version | |
run: | | |
$manifest = [xml](Get-Content pcsx2-winrt\Package.appxmanifest) | |
$version = $manifest.Package.Identity.Version | |
echo $version | |
echo version=$version >> $env:GITHUB_OUTPUT | |
- name: Echo the GitHub Env for File Names | |
run: | | |
echo "${{ steps.extract_version.outputs.version }}" | |
- name: Restore NuGet packages | |
run: nuget restore PCSX2_qt.sln | |
- 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 -o"./" | |
- name: Build the project | |
run: msbuild PCSX2_qt.sln /m /p:PlatformToolset=v143 /t:Restore,Rebuild /p:Configuration="${{ matrix.configuration }}" /p:Platform=x64 /t:restore,build /p:RestorePackagesConfig=true | |
- name: Upload APPX file (SSE4) | |
if: matrix.configuration == 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: appx-${{ matrix.configuration }} | |
path: "AppPackages\\xbsx2\\xbsx2_${{ steps.extract_version.outputs.version }}_x64_Test\\xbsx2_${{ steps.extract_version.outputs.version }}_x64.appx" | |
- name: Upload APPX file (AVX2) | |
if: matrix.configuration == 'Release AVX2' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: appx-${{ matrix.configuration }} | |
path: "AppPackages\\xbsx2\\xbsx2_${{ steps.extract_version.outputs.version }}_x64_Release AVX2_Test\\xbsx2_${{ steps.extract_version.outputs.version }}_x64_Release AVX2.appx" | |
Publish-release: | |
needs: build | |
name: Publish Release | |
if: github.ref == 'refs/heads/uwp' | |
permissions: write-all | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Download Artifacts | |
uses: actions/[email protected] | |
with: | |
path: ./artifacts/ | |
- name: Create a new release | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
automatic_release_tag: latest | |
prerelease: false | |
title: Latest XBSX2 Builds | |
files: | | |
./artifacts/appx-Release/AppPackages/xbsx2/xbsx2_${{ steps.extract_version.outputs.version }}_x64_Test/xbsx2_${{ steps.extract_version.outputs.version }}_x64.appx | |
./artifacts/appx-Release\ AVX2/AppPackages/xbsx2/xbsx2_${{ steps.extract_version.outputs.version }}_x64_Release\ AVX2_Test/xbsx2_${{ steps.extract_version.outputs.version }}_x64_Release\ AVX2.appx |