File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments