Skip to content

Commit

Permalink
build(generate-pgo): add http server
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Sep 9, 2023
1 parent f5bc8c7 commit c40959a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/generate-pgo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ jobs:
with:
go-version: 'stable'
- run: go mod download
- run: |
sudo python3 -m http.server 80 &> /dev/null &
echo "pid=$!" >> "$GITHUB_OUTPUT"
id: server
- run: |
make pprof
kill -9 ${{ steps.server.outputs.pid }}
echo "changes=$(git status -s ${{ env.PGO_FILE }} | wc -l)" >> "$GITHUB_OUTPUT"
id: pprof
- if: ${{ steps.pprof.outputs.changes > 0 }}
Expand Down

0 comments on commit c40959a

Please sign in to comment.