FINE. I'll hard code it.
All checks were successful
gobuild / build (push) Successful in 30s

This commit is contained in:
Greg Gauthier 2024-07-21 17:35:28 +01:00
parent 1f27512017
commit c34bdf66f2

View File

@ -1,8 +1,5 @@
#!/usr/bin/env sh
export GO=$(which go)
$GO version
mkdir build
GIT_COMMIT=$(git rev-list -1 HEAD)
@ -14,10 +11,10 @@ export VERSION_STRING
buildpath="build/$(uname)/gostations"
$GO mod vendor
$GO mod tidy
/usr/local/go/bin/go mod vendor
/usr/local/go/bin/go mod tidy
$GO build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING"
/usr/local/go/bin/go build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING"
"$buildpath" -v