diff --git a/install.ps1 b/install.ps1 index 34dbd83c..0eecc14f 100644 --- a/install.ps1 +++ b/install.ps1 @@ -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 ############################################################ diff --git a/xtask/config.yaml b/xtask/config.yaml index 8da9efb9..6abcf2c8 100644 --- a/xtask/config.yaml +++ b/xtask/config.yaml @@ -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 diff --git a/xtask/gha-matrices/release-builds.json b/xtask/gha-matrices/release-builds.json index 9cf91e9d..d65b6ca8 100644 --- a/xtask/gha-matrices/release-builds.json +++ b/xtask/gha-matrices/release-builds.json @@ -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"}]} \ No newline at end of file +{"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"}]} \ No newline at end of file