Skip to content

Commit

Permalink
Restrict PGO generation and upload to x86_64 architecture in Windows …
Browse files Browse the repository at this point in the history
…build workflow
  • Loading branch information
mr-cheff committed Dec 23, 2024
1 parent 234346e commit 4470dc1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/windows-release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand All @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 4470dc1

Please sign in to comment.