This repository has been archived on 2025-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
Files
2023-11-15 12:02:29 +01:00

22 lines
715 B
Bash
Executable File

#!/bin/sh
# disable go modules
export GOPATH=""
# enable cgo due to
# https://github.com/containers/image/issues/1382
# which means difficult times ahead with cross compiling
export CGO_ENABLED=0
set -e
set -x
# linux - btw, I use amd64 arch linux... okay its manjaro... close enough
#GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/drone-runner-podman
GOOS=linux GOARCH=arm64 go build -tags containers_image_openpgp -o release/linux/arm64/drone-runner-podman
# GOOS=linux GOARCH=arm go build -o release/linux/arm/drone-runner-podman
# GOOS=linux GOARCH=ppc64le go build -o release/linux/ppc64le/drone-runner-podman
# windows
# GOOS=windows go build -o release/windows/amd64/drone-runner-podman.exe