Files
smt/.drone.sh
Nathan Coad 4e0e55473a
Some checks reported errors
continuous-integration/drone/push Build was killed
whoops
2024-01-04 15:00:22 +11:00

20 lines
409 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 GOCACHE
#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
ls -lah www
ls -lah ~