From 81f4eb2062e8462df06b697f858e241ee331773a Mon Sep 17 00:00:00 2001 From: AdamN <7974720+anr2me@users.noreply.github.com> Date: Mon, 25 Dec 2023 03:41:48 +0700 Subject: [PATCH 1/3] Create manual_generate_uwp.yml initial --- .github/workflows/manual_generate_uwp.yml | 74 +++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 .github/workflows/manual_generate_uwp.yml diff --git a/.github/workflows/manual_generate_uwp.yml b/.github/workflows/manual_generate_uwp.yml new file mode 100644 index 000000000000..3d961b0b0dcb --- /dev/null +++ b/.github/workflows/manual_generate_uwp.yml @@ -0,0 +1,74 @@ +name: Manual Generate UWP APPX +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 }} UWP + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + submodules: recursive + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.1 + + - name: Setup cache + id: cache-uwp + uses: actions/cache@v3 + with: + key: uwp-${{ github.event.inputs.buildConfiguration }}-${{ github.event.inputs.buildPlatform }} + + - name: Execute build + working-directory: ${{ env.GITHUB_WORKSPACE }} + run: msbuild /m /p:TrackFileAccess=false /p:Configuration=${{ github.event.inputs.buildConfiguration }} /p:Platform=${{ github.event.inputs.buildPlatform }} /p:AppxPackageSigningEnabled=false /p:AppxBundle=Always /p:AppxBundlePlatforms="x64|ARM64" UWP/PPSSPP_UWP.sln + + - name: Package build + working-directory: ${{ env.GITHUB_WORKSPACE }} + run: | + mkdir ppsspp + cp PPSSPP*.exe ppsspp/ + cp *.pdb ppsspp/ + cp AppxManifest.xml ppsspp/ + cp AppxManifest.xml ppsspp/ + cp PPSSPP_UWP.build.appxrecipe ppsspp/ + cp resources.pri ppsspp/ + cp UWP.winmd ppsspp/ + #cp Windows/*.bat ppsspp/ + cp -r assets ppsspp/Content + # Testing values ... + echo "Content of [env.GITHUB_WORKSPACE] = ${env.GITHUB_WORKSPACE}" + # Testing file location ... + find . -name "PPSSPP*.exe" + find . -name "AppPackages" + find . -name "*.msix" + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: UWP-${{ github.event.inputs.buildConfiguration }}-${{ github.event.inputs.buildPlatform }} build + path: ppsspp/ From 0697b2e58f83e43ec1f62ada4677dddef9a37856 Mon Sep 17 00:00:00 2001 From: AdamN <7974720+anr2me@users.noreply.github.com> Date: Wed, 27 Dec 2023 00:12:24 +0700 Subject: [PATCH 2/3] Create test_bug.yml --- .github/workflows/test_bug.yml | 53 ++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/test_bug.yml diff --git a/.github/workflows/test_bug.yml b/.github/workflows/test_bug.yml new file mode 100644 index 000000000000..b87ae3bf3373 --- /dev/null +++ b/.github/workflows/test_bug.yml @@ -0,0 +1,53 @@ +name: Testing Bug +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 }} UWP + runs-on: windows-latest + + steps: + #- uses: actions/checkout@v3 + # with: + # fetch-depth: 0 + # submodules: recursive + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.1 + + - 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 [[env:GITHUB_WORKSPACE]] = ${{env:GITHUB_WORKSPACE}}" # This line (commented or not) will make this YML file to be invalid and showing an error at the wrong line (a bug in the YAML parser may be?) + echo "Content of [github.workspace] = ${github.workspace}" + echo "Content of [[github.workspace]] = ${{github.workspace}}" + echo "one ${ github.event.inputs.buildPlatform }" + echo ${{github.workspace}} + echo "two ${{ github.event.inputs.buildPlatform }}" + echo $env:GITHUB_WORKSPACE From a6944f6a9745e49321226b7e38ab756c86c189a0 Mon Sep 17 00:00:00 2001 From: AdamN <7974720+anr2me@users.noreply.github.com> Date: Wed, 27 Dec 2023 11:20:21 +0700 Subject: [PATCH 3/3] removing the problematic line --- .github/workflows/test_bug.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test_bug.yml b/.github/workflows/test_bug.yml index b87ae3bf3373..51ab14cf7d5a 100644 --- a/.github/workflows/test_bug.yml +++ b/.github/workflows/test_bug.yml @@ -44,7 +44,6 @@ jobs: 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 [[env:GITHUB_WORKSPACE]] = ${{env:GITHUB_WORKSPACE}}" # This line (commented or not) will make this YML file to be invalid and showing an error at the wrong line (a bug in the YAML parser may be?) echo "Content of [github.workspace] = ${github.workspace}" echo "Content of [[github.workspace]] = ${{github.workspace}}" echo "one ${ github.event.inputs.buildPlatform }"