Files
smt/.drone.sh
Nathan Coad ead1340659
Some checks reported errors
continuous-integration/drone/push Build was killed
go detective work
2024-01-04 15:36:49 +11:00

20 lines
399 B
Bash

#!/bin/sh
# disable CGO for cross-compiling
export CGO_ENABLED=0
export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S')
echo $now
pwd
ls -lah ~
go env
go env GOPATH
#GOCACHE=/tmp/cache
#export GOCACHE
#go env GOCACHE
echo "build commences"
go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o smt
echo "build complete"
sha256sum smt > smt_checksum.txt
ls -lah
find .