Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ARM64 Windows to release builds #512

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,14 @@ Param(

### Detection ############################################################

# TODO: we only support x86_64 platform right now
$platform ="x86_64"
# TODO: we only support 64-bit x86 and ARM
if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64") {
$platform ="x86_64"
} elseif ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") {
$platform = "aarch64"
} else {
throw "Unsupported architecture: ${env:PROCESSOR_ARCHITECTURE}"
}

### Prerequisites ############################################################

Expand Down
2 changes: 2 additions & 0 deletions xtask/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ release-builds:
- { runner: macos-latest , target: x86_64-apple-darwin }
- { runner: macos-latest , target: aarch64-apple-darwin }
- { runner: windows-latest , target: x86_64-pc-windows-msvc }
- { runner: windows-latest , target: aarch64-pc-windows-msvc }

release-tests:
- os: alpine
type: docker
Expand Down
2 changes: 1 addition & 1 deletion xtask/gha-matrices/release-builds.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"include":[{"target":"x86_64-unknown-linux-musl","runner":"ubuntu-latest"},{"target":"arm-unknown-linux-musleabihf","runner":"ubuntu-latest"},{"target":"armv7-unknown-linux-musleabihf","runner":"ubuntu-latest"},{"target":"aarch64-unknown-linux-musl","runner":"ubuntu-latest"},{"target":"aarch64-unknown-linux-gnu","runner":"ubuntu-latest"},{"target":"x86_64-apple-darwin","runner":"macos-latest"},{"target":"aarch64-apple-darwin","runner":"macos-latest"},{"target":"x86_64-pc-windows-msvc","runner":"windows-latest"}]}
{"include":[{"target":"x86_64-unknown-linux-musl","runner":"ubuntu-latest"},{"target":"arm-unknown-linux-musleabihf","runner":"ubuntu-latest"},{"target":"armv7-unknown-linux-musleabihf","runner":"ubuntu-latest"},{"target":"aarch64-unknown-linux-musl","runner":"ubuntu-latest"},{"target":"aarch64-unknown-linux-gnu","runner":"ubuntu-latest"},{"target":"x86_64-apple-darwin","runner":"macos-latest"},{"target":"aarch64-apple-darwin","runner":"macos-latest"},{"target":"x86_64-pc-windows-msvc","runner":"windows-latest"},{"target":"aarch64-pc-windows-msvc","runner":"windows-latest"}]}