Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Stabilize CI
Add -s flag to ldflags to remove DWARF, string and symbol tables from
release binaries
  • Loading branch information
Valery Piashchynski committed Feb 12, 2020
commit a693018d213abbc5774c2a0fe60c1087c2da83da
4 changes: 2 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:
- name: Install Go dependencies
run: go mod download

# - name: Download binary roadrunner
# run: php ./bin/rr get-binary
- name: Download binary roadrunner
run: php ./bin/rr get-binary

- name: Run golang tests
run: |
Expand Down
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ RR_VERSION=1.6.0
# Hardcode some values to the core package
LDFLAGS="$LDFLAGS -X github.com/spiral/roadrunner/cmd/rr/cmd.Version=${RR_VERSION}"
LDFLAGS="$LDFLAGS -X github.com/spiral/roadrunner/cmd/rr/cmd.BuildTime=$(date +%FT%T%z)"
# remove debug info from binary as well as string and symbol tables
LDFLAGS="$LDFLAGS -s"

build(){
echo Packaging $1 Build
Expand Down