From 4470dc1fc990749ee974ce618c3af0fc1b0dbbad Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Mon, 23 Dec 2024 14:49:50 +0100 Subject: [PATCH] Restrict PGO generation and upload to x86_64 architecture in Windows build workflow --- .github/workflows/windows-release-build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows-release-build.yml b/.github/workflows/windows-release-build.yml index ed09ac6f8..ae081e8e5 100644 --- a/.github/workflows/windows-release-build.yml +++ b/.github/workflows/windows-release-build.yml @@ -153,6 +153,7 @@ jobs: chmod +x ~/artifact/merged.profdata - name: Build + if: ${{ !(inputs.generate-gpo && matrix.arch == 'aarch64') }} env: SURFER_COMPAT: ${{ matrix.arch }} run: | @@ -166,6 +167,7 @@ jobs: sh .github/workflows/src/release-build.sh - name: Package + if: ${{ !(inputs.generate-gpo && matrix.arch == 'aarch64') }} env: SURFER_COMPAT: ${{ matrix.arch }} run: | @@ -182,7 +184,7 @@ jobs: timeout-minutes: 15 - name: Move package for PGO upload - if: ${{ inputs.generate-gpo }} + if: ${{ inputs.generate-gpo && matrix.arch == 'x86_64' }} run: | set -x mv ./zen.win64.zip ./zen.win64-pgo-stage-1.zip @@ -196,7 +198,7 @@ jobs: - name: Upload artifact (PGO) uses: actions/upload-artifact@v4 - if: ${{ inputs.generate-gpo }} + if: ${{ inputs.generate-gpo && matrix.arch == 'x86_64' }} with: retention-days: 5 name: ${{ matrix.arch == 'aarch64' && 'arm64' || matrix.arch }}-${{ inputs.profile-data-path-archive }}