Skip to content

Commit

Permalink
ci: add pgo to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wolffshots committed Apr 9, 2024
1 parent 2d62d95 commit f13ab6c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
if [[ $GITHUB_REF == refs/tags/* ]]; then
TAG_NAME="${GITHUB_REF#refs/tags/}"
echo "Current tag is $TAG_NAME"
env GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-X 'main.version=$TAG_NAME' -s -w" -o ./phocus -v main.go
env GOOS=linux GOARCH=arm GOARM=6 go build -pgo=./profiles/default.pgo -ldflags="-X 'main.version=$TAG_NAME' -s -w" -o ./phocus -v main.go
else
echo "Not on a tag. The commit SHA is $GITHUB_SHA"
env GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-X 'main.version=$GITHUB_SHA' -s -w" -o ./phocus -v main.go
env GOOS=linux GOARCH=arm GOARM=6 go build -pgo=./profiles/default.pgo -ldflags="-X 'main.version=$GITHUB_SHA' -s -w" -o ./phocus -v main.go
fi
env:
GITHUB_REF: ${{ github.ref }}
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ main
.fleet
phocus
build
profiles/*.pgo

.tmp
._*
Expand Down
Binary file added profiles/default.pgo
Binary file not shown.

0 comments on commit f13ab6c

Please sign in to comment.