codeberg-pages-deploy/scripts/build.sh
Dorian Zedler e473763538
Some checks failed
continuous-integration/drone Build is failing
Chore: Initial commit
2022-07-17 18:28:14 +02:00

18 lines
363 B
Bash
Executable file

#!/bin/sh
# force go modules
export GOPATH=""
# disable cgo
export CGO_ENABLED=0
set -e
set -x
# linux
GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/plugin
GOOS=linux GOARCH=arm64 go build -o release/linux/arm64/plugin
GOOS=linux GOARCH=arm go build -o release/linux/arm/plugin
# windows
GOOS=windows go build -o release/windows/amd64/plugin.exe