From c0c3bda9ce6968417d87c0dfcfdab1c76bf044bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Mon, 21 Oct 2024 07:29:52 +0900 Subject: [PATCH] ci: add windows arm64 build --- .drone.jsonnet | 1 + .drone.yml | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/.drone.jsonnet b/.drone.jsonnet index 30693ba..723733c 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -119,6 +119,7 @@ local PipelineRelease() = { StepGoBuild('linux', 'arm64'), StepGoBuild('linux', '386'), StepGoBuild('windows', 'amd64'), + StepGoBuild('windows', 'arm64'), StepGoBuild('windows', '386'), StepGoBuild('darwin', 'amd64'), StepGoBuild('darwin', 'arm64'), diff --git a/.drone.yml b/.drone.yml index 3ed8117..f56b43c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -176,6 +176,19 @@ steps: GOPROXY: https://goproxy.io,direct image: golang:1.22 name: go build windows/amd64 +- commands: + - DIST_DIR=$(mktemp -d) + - go build -v -trimpath -ldflags="-w -s -X main.AppVersion=$(git describe --tags + --always)" -o $DIST_DIR ./cmd/um + - mkdir -p dist + - command -v zip >/dev/null || (apt update && apt install -y zip) + - zip -9 -j -r "dist/um-windows-arm64.zip" $DIST_DIR + environment: + GOARCH: arm64 + GOOS: windows + GOPROXY: https://goproxy.io,direct + image: golang:1.22 + name: go build windows/arm64 - commands: - DIST_DIR=$(mktemp -d) - go build -v -trimpath -ldflags="-w -s -X main.AppVersion=$(git describe --tags