mirror of
https://github.com/drone-plugins/github-actions
synced 2026-12-01 16:03:55 +01:00
15 lines
366 B
Bash
Executable File
15 lines
366 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Preserve the existing AMD64 default; CI selects each native architecture.
|
|
set -eu
|
|
export GOPATH=""
|
|
export CGO_ENABLED=0
|
|
|
|
build_arch="${GOARCH:-amd64}"
|
|
case "$build_arch" in
|
|
amd64|arm64) ;;
|
|
*) echo "Unsupported Linux architecture: $build_arch" >&2; exit 1 ;;
|
|
esac
|
|
|
|
GOOS=linux GOARCH="$build_arch" go build -o "release/linux/$build_arch/plugin" ./cmd
|