From 1f27512017376148b3d2cbe32d1a2d1a2378d7ba Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sun, 21 Jul 2024 17:33:05 +0100 Subject: [PATCH] custom build script for gitea runner --- ci-build.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ci-build.sh b/ci-build.sh index b3c39ee..ac535e2 100755 --- a/ci-build.sh +++ b/ci-build.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh -GO = $(which go) +export GO=$(which go) +$GO version mkdir build @@ -13,10 +14,10 @@ export VERSION_STRING buildpath="build/$(uname)/gostations" -${GO} mod vendor -${GO} mod tidy +$GO mod vendor +$GO mod tidy -${GO} build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING" +$GO build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING" "$buildpath" -v