summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-12 10:40:23 +0300
committerValery Piashchynski <[email protected]>2020-02-12 10:40:23 +0300
commita693018d213abbc5774c2a0fe60c1087c2da83da (patch)
tree48630fd9c6bcd3caf8716c850459a8655b98c122
parented2df68318f0e2e82c95bc54699c5a9610f906f3 (diff)
Stabilize CI
Add -s flag to ldflags to remove DWARF, string and symbol tables from release binaries
-rw-r--r--.github/workflows/ci-build.yml4
-rwxr-xr-xbuild.sh2
2 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index 578de0c0..cf63195c 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -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: |
diff --git a/build.sh b/build.sh
index 2ca858e2..8015a481 100755
--- a/build.sh
+++ b/build.sh
@@ -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