From 75471c3242c57c1e4d98896c0eea2d376eb4f80a Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 1 Jun 2022 20:45:06 +0300 Subject: [PATCH] Add missing flags --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 48a8708..4d7d0ef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,7 @@ cache: before_script: - export GO_LDFLAGS="-s -w -linkmode external -extldflags -static -X main.Tag=$CI_COMMIT_TAG -X main.Commit=$CI_COMMIT_SHA -X 'main.BuildTime=`date '+%b %_d %Y, %H:%M:%S'`'" script: - - go build -o gomuks + - go build -ldflags "$GO_LDFLAGS" -o gomuks artifacts: paths: - gomuks @@ -51,7 +51,7 @@ macos/amd64: - export GO_LDFLAGS="-X main.Tag=$CI_COMMIT_TAG -X main.Commit=$CI_COMMIT_SHA -X 'main.BuildTime=`date '+%b %_d %Y, %H:%M:%S'`'" script: - mkdir gomuks-macos-amd64 - - go build -o gomuks-macos-amd64/gomuks + - go build -ldflags "$GO_LDFLAGS" -o gomuks-macos-amd64/gomuks - install_name_tool -change /usr/local/opt/libolm/lib/libolm.3.dylib @rpath/libolm.3.dylib gomuks-macos-amd64/gomuks - install_name_tool -add_rpath @executable_path gomuks-macos-amd64/gomuks - install_name_tool -add_rpath /usr/local/opt/libolm/lib gomuks-macos-amd64/gomuks @@ -72,7 +72,7 @@ macos/arm64: - export GO_LDFLAGS="-X main.Tag=$CI_COMMIT_TAG -X main.Commit=$CI_COMMIT_SHA -X 'main.BuildTime=`date '+%b %_d %Y, %H:%M:%S'`'" script: - mkdir gomuks-macos-arm64 - - go build -o gomuks-macos-arm64/gomuks + - go build -ldflags "$GO_LDFLAGS" -o gomuks-macos-arm64/gomuks - install_name_tool -change /opt/homebrew/opt/libolm/lib/libolm.3.dylib @rpath/libolm.3.dylib gomuks-macos-arm64/gomuks - install_name_tool -add_rpath @executable_path gomuks-macos-arm64/gomuks - install_name_tool -add_rpath /opt/homebrew/opt/libolm/lib gomuks-macos-arm64/gomuks