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
drone-runner-podman/scripts/build.sh
2023-10-04 23:19:30 -05:00

22 lines
685 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=1
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 -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