Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f873da4

Browse files
authored
Merge pull request #987 from per1234/windows-arm
Generate builds for Windows ARM hosts
2 parents 6b5f4bd + 8e3145e commit f873da4

File tree

5 files changed

+46
-7
lines changed

5 files changed

+46
-7
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
- task: Windows_64bit
3535
artifact-suffix: Windows_64bit
3636
runner: ubuntu-latest
37+
- task: Windows_ARM64
38+
artifact-suffix: Windows_ARM64
39+
runner: ubuntu-24.04-arm
3740
- task: Linux_32bit
3841
artifact-suffix: Linux_32bit
3942
runner: ubuntu-latest

‎.github/workflows/publish-go-tester-task.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ jobs:
9393
path: "*Windows_64bit.zip"
9494
runner: ubuntu-latest
9595
artifact-name: Windows_X86-64
96+
- task: Windows_ARM64
97+
path: "*Windows_ARM64.zip"
98+
runner: ubuntu-24.04-arm
99+
artifact-name: Windows_ARM64
96100
- task: Linux_32bit
97101
path: "*Linux_32bit.tar.gz"
98102
runner: ubuntu-latest

‎.github/workflows/release-go-task.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
- task: Windows_64bit
3232
artifact-suffix: Windows_64bit
3333
runner: ubuntu-latest
34+
- task: Windows_ARM64
35+
artifact-suffix: Windows_ARM64
36+
runner: ubuntu-24.04-arm
3437
- task: Linux_32bit
3538
artifact-suffix: Linux_32bit
3639
runner: ubuntu-latest

‎DistTasks.yml‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,33 @@ 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+
# "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
82+
- |
83+
docker run \
84+
-v `pwd`/..:/home/build \
85+
-w /home/build \
86+
-e CGO_ENABLED=1 \
87+
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
88+
--build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
89+
-p "{{.BUILD_PLATFORM}}"
90+
91+
zip \
92+
{{.PACKAGE_NAME}} \
93+
{{.PLATFORM_DIR}}/{{.PROJECT_NAME}}.exe ../LICENSE.txt \
94+
-j
95+
96+
vars:
97+
PLATFORM_DIR: "{{.PROJECT_NAME}}_windows_arm64"
98+
BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}}.exe {{.LDFLAGS}}"
99+
BUILD_PLATFORM: "windows/arm64"
100+
CONTAINER_TAG: "{{.GO_VERSION}}-windows-arm64-debian12"
101+
PACKAGE_PLATFORM: "Windows_ARM64"
102+
PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.zip"
103+
77104
Linux_32bit:
78105
desc: Builds Linux 32 bit binaries
79106
dir: "{{.DIST_DIR}}"

‎docs/installation.md‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,22 @@ These are available from the "Assets" sections on the [releases page](https://gi
6767
These builds are generated every day at 01:00 GMT from the `main` branch and should be considered unstable. In order to
6868
get the latest nightly build available for the supported platform, use the following links:
6969

70-
| Platform | | |
71-
| --------- | ---------------------------- | ---------------------------- |
72-
| Linux | [32 bit][linux32-nightly] | [64 bit][linux64-nightly] |
73-
| Linux ARM | [32 bit][linuxarm32-nightly] | [64 bit][linuxarm64-nightly] |
74-
| Windows | [32 bit][windows32-nightly] | [64 bit][windows64-nightly] |
75-
| macOS | | [64 bit][macos64-nightly] |
76-
| macOS ARM | | [64 bit][macosarm64-nightly] |
70+
| Platform | | |
71+
| ----------- | ---------------------------- | ------------------------------ |
72+
| Linux | [32 bit][linux32-nightly] | [64 bit][linux64-nightly] |
73+
| Linux ARM | [32 bit][linuxarm32-nightly] | [64 bit][linuxarm64-nightly] |
74+
| Windows | [32 bit][windows32-nightly] | [64 bit][windows64-nightly] |
75+
| Windows ARM | | [64 bit][windowsarm64-nightly] |
76+
| macOS | | [64 bit][macos64-nightly] |
77+
| macOS ARM | | [64 bit][macosarm64-nightly] |
7778

7879
[linux64-nightly]: https://downloads.arduino.cc/arduino-lint/nightly/arduino-lint_nightly-latest_Linux_64bit.tar.gz
7980
[linux32-nightly]: https://downloads.arduino.cc/arduino-lint/nightly/arduino-lint_nightly-latest_Linux_32bit.tar.gz
8081
[linuxarm64-nightly]: https://downloads.arduino.cc/arduino-lint/nightly/arduino-lint_nightly-latest_Linux_ARM64.tar.gz
8182
[linuxarm32-nightly]: https://downloads.arduino.cc/arduino-lint/nightly/arduino-lint_nightly-latest_Linux_ARMv7.tar.gz
8283
[windows64-nightly]: https://downloads.arduino.cc/arduino-lint/nightly/arduino-lint_nightly-latest_Windows_64bit.zip
8384
[windows32-nightly]: https://downloads.arduino.cc/arduino-lint/nightly/arduino-lint_nightly-latest_Windows_32bit.zip
85+
[windowsarm64-nightly]: https://downloads.arduino.cc/arduino-lint/nightly/arduino-lint_nightly-latest_Windows_ARM64.zip
8486
[macos64-nightly]: https://downloads.arduino.cc/arduino-lint/nightly/arduino-lint_nightly-latest_macOS_64bit.tar.gz
8587
[macosarm64-nightly]: https://downloads.arduino.cc/arduino-lint/nightly/arduino-lint_nightly-latest_macOS_ARM64.tar.gz
8688

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /