custom build script for gitea runner
Some checks failed
gobuild / build (push) Failing after 8s

This commit is contained in:
Greg Gauthier 2024-07-21 17:33:05 +01:00
parent 3ae9f2afa2
commit 1f27512017

View File

@ -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