Manual Generate UWP MSIX/MSIXBundle #23
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: Manual Generate UWP APPX/MSIX | |
on: | |
workflow_dispatch: | |
inputs: | |
buildConfiguration: | |
type: choice | |
description: 'Build Configuration' | |
required: true | |
default: 'Release' | |
options: | |
- Release | |
- Debug | |
buildPlatform: | |
type: choice | |
description: 'Build Platform' | |
required: true | |
default: 'x64' | |
options: | |
- x64 | |
- ARM64 | |
- ARM | |
jobs: | |
build-uwp: | |
name: Generate ${{ github.event.inputs.buildConfiguration }} ${{ github.event.inputs.buildPlatform }} UWP | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Add MSBuild to PATH | |
uses: microsoft/[email protected] | |
- name: Setup cache | |
id: cache-uwp | |
uses: actions/cache@v3 | |
with: | |
path: | | |
UWP/${{ github.event.inputs.buildPlatform }}/${{ github.event.inputs.buildConfiguration }}/** | |
key: uwp-${{ github.event.inputs.buildConfiguration }}-${{ github.event.inputs.buildPlatform }} | |
- name: Testing values | |
run: | | |
# Testing values ... | |
env | |
echo "Content of [env.GITHUB_WORKSPACE] = ${env.GITHUB_WORKSPACE}" | |
echo "Content of [[env.GITHUB_WORKSPACE]] = ${{env.GITHUB_WORKSPACE}}" | |
echo "Content of [env:GITHUB_WORKSPACE] = ${env:GITHUB_WORKSPACE}" | |
echo "Content of [github.workspace] = ${github.workspace}" | |
echo "Content of [[github.workspace]] = ${{github.workspace}}" | |
echo "double ${{ github.event.inputs.buildPlatform }}" | |
echo ${{github.workspace}} | |
echo "single ${ github.event.inputs.buildPlatform }" | |
echo $env:GITHUB_WORKSPACE | |
- name: Execute build | |
working-directory: ${{ github.workspace }} | |
run: msbuild UWP/PPSSPP_UWP.sln /m /p:TrackFileAccess=false /p:IncludeSymbols=${{ github.event.inputs.buildConfiguration == 'Debug' && 'true' || 'false' }} /p:Configuration=${{ github.event.inputs.buildConfiguration }} /p:Platform=${{ github.event.inputs.buildPlatform }} /p:AppxPackageSigningEnabled=true /p:PackageCertificateKeyFile=PPSSPP_UWP_TemporaryKey.pfx /p:AppxBundle=Never /p:UapAppxPackageBuildMode=SideloadOnly /p:AppxBundlePlatforms="${{ github.event.inputs.buildPlatform }}" | |
- name: Package build | |
working-directory: ${{ github.workspace }} | |
run: | | |
# Testing file location ... | |
#find . -name "PPSSPP*.exe" | |
#find . -name "*.appx*" | |
#find . -name "*.msix*" | |
mkdir ppsspp | |
#ls | |
#ls UWP/AppPackages/PPSSPP_UWP | |
cp -r UWP/AppPackages/PPSSPP_UWP/*.* ppsspp/ | |
#ls ppsspp | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: UWP-${{ github.event.inputs.buildConfiguration }}-${{ github.event.inputs.buildPlatform }} build | |
path: ppsspp/ |