Skip to content

Commit

Permalink
disable PGO generation
Browse files Browse the repository at this point in the history
  • Loading branch information
1pkg committed Sep 17, 2024
1 parent 8db9754 commit 1c642c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,19 +192,19 @@ jobs:
# via a PR to update default.pgo.

- name: Copy CPU profile
if: ${{ inputs.runStandalone }}
if: ${{ inputs.runStandalone && github.ref == 'refs/heads/main'}}
run: make cp-cpuprof

- name: Upload CPU profile
if: ${{ inputs.runStandalone }}
if: ${{ inputs.runStandalone && github.ref == 'refs/heads/main'}}
uses: actions/upload-artifact@v4
with:
name: cpu-profile
path: ${{ env.WORKING_DIRECTORY }}/${{ env.BENCHMARK_CPU_OUT }}
if-no-files-found: error

- name: Open PGO PR
if: ${{ inputs.runStandalone }}
if: ${{ inputs.runStandalone && github.ref == 'refs/heads/main'}}
run: |
cd "${{ github.workspace }}"
mv "$PROFILE_PATH" x-pack/apm-server/default.pgo
Expand Down

0 comments on commit 1c642c2

Please sign in to comment.