Support more platforms in various tools

This commit is contained in:
Taiki Endo
2026-03-19 20:29:37 +09:00
parent c5e61399de
commit 02b095fa15
28 changed files with 475 additions and 18 deletions

View File

@@ -12,6 +12,7 @@
"x86_64_windows": {
"asset_name": "${package}-${rust_target}-v${version}.zip"
},
"aarch64_linux_gnu": {}
"aarch64_linux_gnu": {},
"aarch64_macos": {}
}
}

View File

@@ -12,6 +12,11 @@
"asset_name": "${package}-${rust_target}.zip",
"bin": "${package}${exe}"
},
"aarch64_macos": {}
"aarch64_linux_gnu": {},
"aarch64_macos": {},
"aarch64_windows": {
"asset_name": "${package}-${rust_target}.zip",
"bin": "${package}${exe}"
}
}
}

View File

@@ -24,6 +24,9 @@
],
"bin": "${package}${exe}"
},
"aarch64_linux_gnu": {
"asset_name": "${package}-${rust_target}.tar.xz"
},
"aarch64_macos": {
"asset_name": "${package}-${rust_target}.tar.xz"
}

View File

@@ -9,10 +9,10 @@
"platform": {
"x86_64_linux_musl": {},
"x86_64_macos": {},
"aarch64_macos": {},
"x86_64_windows": {
"asset_name": "${package}-${rust_target}.zip",
"bin": "${package}.exe"
}
},
"aarch64_macos": {}
}
}

View File

@@ -8,6 +8,7 @@
"x86_64_linux_musl": {},
"x86_64_macos": {},
"x86_64_windows": {},
"aarch64_linux_gnu": {},
"aarch64_macos": {}
}
}

View File

@@ -13,6 +13,8 @@
},
"x86_64_windows": {},
"aarch64_linux_gnu": {},
"aarch64_linux_musl": {},
"aarch64_windows": {},
"riscv64_linux_gnu": {}
}
}

View File

@@ -16,6 +16,7 @@
"aarch64_macos": {},
"aarch64_windows": {
"asset_name": "${package}-${version}-${rust_target}.zip"
}
},
"riscv64_linux_musl": {}
}
}

View File

@@ -10,6 +10,7 @@
"x86_64_windows": {},
"aarch64_linux_gnu": {},
"aarch64_linux_musl": {},
"aarch64_macos": {}
"aarch64_macos": {},
"riscv64_linux_gnu": {}
}
}

View File

@@ -9,6 +9,7 @@
"x86_64_linux_musl": {},
"x86_64_macos": {},
"x86_64_windows": {},
"aarch64_linux_musl": {},
"aarch64_macos": {}
}
}

View File

@@ -10,6 +10,8 @@
"x86_64_windows": {},
"aarch64_linux_musl": {},
"aarch64_macos": {},
"aarch64_windows": {}
"aarch64_windows": {},
"riscv64_linux_musl": {},
"s390x_linux_musl": {}
}
}

View File

@@ -19,6 +19,9 @@
"aarch64_macos": {
"asset_name": "${package}_${version}_darwin_arm64.tar.gz"
},
"aarch64_windows": {
"asset_name": "${package}_${version}_windows_arm64.zip"
},
"powerpc64le_linux_musl": {
"asset_name": "${package}_${version}_linux_ppc64le.tar.gz"
},

View File

@@ -17,6 +17,9 @@
"aarch64_macos": {
"asset_name": "${package}-darwin-${rust_target_arch}.gz"
},
"aarch64_windows": {
"asset_name": "${package}-${rust_target_os}-${rust_target_arch}.zip"
},
"riscv64_linux_gnu": {}
}
}

View File

@@ -8,6 +8,7 @@
"x86_64_linux_musl": {},
"x86_64_macos": {},
"x86_64_windows": {},
"aarch64_linux_musl": {}
"aarch64_linux_musl": {},
"aarch64_macos": {}
}
}

View File

@@ -346,9 +346,8 @@ impl StringOrArray {
}
}
/// GitHub Actions Runner supports x86_64/AArch64/Arm Linux, x86_64/AArch64 Windows,
/// and x86_64/AArch64 macOS.
/// <https://github.com/actions/runner/blob/v2.321.0/.github/workflows/build.yml#L21>
/// GitHub Actions runner supports x86_64/AArch64/Arm Linux and x86_64/AArch64 Windows/macOS.
/// <https://github.com/actions/runner/blob/v2.332.0/.github/workflows/build.yml#L24>
/// <https://docs.github.com/en/actions/reference/runners/self-hosted-runners#supported-processor-architectures>
/// And IBM provides runners for powerpc64le/s390x Linux.
/// <https://github.com/IBM/actionspz>
@@ -359,13 +358,15 @@ impl StringOrArray {
/// (rustc enables statically linking for linux-musl by default, except for mips.)
/// - Binaries compiled for x86_64 macOS will usually also work on AArch64 macOS.
/// - Binaries compiled for x86_64 Windows will usually also work on AArch64 Windows 11+.
/// - Ignore Arm for now, as we need to consider the version and whether hard-float is supported.
/// - Ignore 32-bit Arm for now, as we need to consider the version and whether hard-float is supported.
/// <https://github.com/rust-lang/rustup/pull/593>
/// <https://github.com/cross-rs/cross/pull/1018>
/// And support for 32-bit Arm will be removed in near future.
/// <https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/#removal-of-operating-system-support-with-node24>
/// Does it seem only armv7l+ is supported?
/// <https://github.com/actions/runner/blob/v2.321.0/src/Misc/externals.sh#L178>
/// <https://github.com/actions/runner/issues/688>
// TODO: support musl with dynamic linking like wasmtime 22.0.0+'s musl binaries: <https://github.com/bytecodealliance/wasmtime/releases/tag/v22.0.0>
// TODO: support musl with dynamic linking like wasmtime and cyclonedx's musl binaries.
#[allow(non_camel_case_types)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
pub enum HostPlatform {