Skip to content

Commit e842beb

Browse files
committed
Add Windows ARM64 binaries to nightly builds
1 parent b700097 commit e842beb

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/publish-go-nightly-task.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
runner: ubuntu-latest
3838
- task: Windows_64bit
3939
runner: ubuntu-latest
40+
- task: Windows_Arm_64bit
41+
runner: ubuntu-latest
4042
- task: Linux_32bit
4143
runner: ubuntu-latest
4244
- task: Linux_64bit

DistTasks.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,21 @@ tasks:
5252
PACKAGE_PLATFORM: "Windows_64bit"
5353
PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.zip"
5454

55+
Windows_Arm_64bit:
56+
desc: Builds Windows ARM 64 bit binaries
57+
cmds:
58+
- |
59+
CGO_ENABLED=0 GOOS=windows GOARCH=arm64 {{.BUILD_COMMAND}}
60+
61+
cd {{.DIST_DIR}}
62+
zip {{.PACKAGE_NAME}} {{.PLATFORM_DIR}}/{{.PROJECT_NAME}}.exe ../LICENSE.txt -j
63+
64+
vars:
65+
PLATFORM_DIR: "{{.PROJECT_NAME}}_windows_arm64"
66+
BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}}.exe {{.LDFLAGS}}"
67+
PACKAGE_PLATFORM: "Windows_Arm_64bit"
68+
PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.zip"
69+
5570
Linux_32bit:
5671
desc: Builds Linux 32 bit binaries
5772
cmds:

0 commit comments

Comments
 (0)