File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 9191 - task : Windows_64bit
9292 path : " *Windows_64bit.zip"
9393 artifact-name : Windows_X86-64
94+ - task : Windows_ARM64
95+ path : " *Windows_ARM64.zip"
96+ artifact-name : Windows_ARM64
9497 - task : Linux_32bit
9598 path : " *Linux_32bit.tar.gz"
9699 artifact-name : Linux_X86-32
Original file line number Diff line number Diff line change 2929 artifact-suffix : Windows_32bit
3030 - task : Windows_64bit
3131 artifact-suffix : Windows_64bit
32+ - task : Windows_ARM64
33+ artifact-suffix : Windows_ARM64
3234 - task : Linux_32bit
3335 artifact-suffix : Linux_32bit
3436 - task : Linux_64bit
Original file line number Diff line number Diff line change @@ -74,6 +74,32 @@ tasks:
7474 PACKAGE_PLATFORM : " Windows_64bit"
7575 PACKAGE_NAME : " {{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.zip"
7676
77+ Windows_ARM64 :
78+ desc : Builds Windows ARM64 binaries
79+ dir : " {{.DIST_DIR}}"
80+ cmds :
81+ - |
82+ docker run \
83+ -v `pwd`/..:/home/build \
84+ -w /home/build \
85+ -e CGO_ENABLED=1 \
86+ {{.CONTAINER}}:{{.CONTAINER_TAG}} \
87+ --build-cmd "{{.BUILD_COMMAND}}" \
88+ -p "{{.BUILD_PLATFORM}}"
89+
90+ zip \
91+ {{.PACKAGE_NAME}} \
92+ {{.PLATFORM_DIR}}/{{.PROJECT_NAME}}.exe ../LICENSE.txt \
93+ -j
94+
95+ vars :
96+ PLATFORM_DIR : " {{.PROJECT_NAME}}_windows_arm64"
97+ BUILD_COMMAND : " go build -buildvcs=false -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}}.exe {{.LDFLAGS}}"
98+ BUILD_PLATFORM : " windows/arm64"
99+ CONTAINER_TAG : " {{.GO_VERSION}}-windows-arm64-debian12"
100+ PACKAGE_PLATFORM : " Windows_ARM64"
101+ PACKAGE_NAME : " {{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.zip"
102+
77103 Linux_32bit :
78104 desc : Builds Linux 32 bit binaries
79105 dir : " {{.DIST_DIR}}"
You can’t perform that action at this time.
0 commit comments