Support Windows ARM64 release packaging
ci / test (push) Canceled after 0s
ci / fuzz-smoke (push) Canceled after 0s
ci / macos-client (macos-aarch64, macos-14) (push) Canceled after 0s
ci / macos-client (macos-x86_64, macos-13) (push) Canceled after 0s
ci / windows-client (push) Canceled after 0s
ci / package-release (linux-x86_64, ubuntu-latest, , , ) (push) Canceled after 0s
ci / package-release (macos-aarch64, macos-14, , , ) (push) Canceled after 0s
ci / package-release (macos-x86_64, macos-13, , , ) (push) Canceled after 0s
ci / package-release (windows-aarch64, windows-latest, aarch64, windows, aarch64-pc-windows-msvc) (push) Canceled after 0s
ci / package-release (windows-x86_64, windows-latest, , , ) (push) Canceled after 0s
ci / remote-bench (push) Canceled after 0s
ci / publish-gitea-release (push) Canceled after 0s
ci / test (push) Canceled after 0s
ci / fuzz-smoke (push) Canceled after 0s
ci / macos-client (macos-aarch64, macos-14) (push) Canceled after 0s
ci / macos-client (macos-x86_64, macos-13) (push) Canceled after 0s
ci / windows-client (push) Canceled after 0s
ci / package-release (linux-x86_64, ubuntu-latest, , , ) (push) Canceled after 0s
ci / package-release (macos-aarch64, macos-14, , , ) (push) Canceled after 0s
ci / package-release (macos-x86_64, macos-13, , , ) (push) Canceled after 0s
ci / package-release (windows-aarch64, windows-latest, aarch64, windows, aarch64-pc-windows-msvc) (push) Canceled after 0s
ci / package-release (windows-x86_64, windows-latest, , , ) (push) Canceled after 0s
ci / remote-bench (push) Canceled after 0s
ci / publish-gitea-release (push) Canceled after 0s
This commit is contained in:
@@ -35,6 +35,7 @@ if [ -z "$target" ] && [ "$os" = "windows" ]; then
|
|||||||
if [ "$host_os" != "windows" ]; then
|
if [ "$host_os" != "windows" ]; then
|
||||||
case "$arch" in
|
case "$arch" in
|
||||||
x86_64) target="x86_64-pc-windows-gnu" ;;
|
x86_64) target="x86_64-pc-windows-gnu" ;;
|
||||||
|
aarch64) target="aarch64-pc-windows-gnullvm" ;;
|
||||||
*) echo "set DOSH_PACKAGE_TARGET for windows/$arch" >&2; exit 1 ;;
|
*) echo "set DOSH_PACKAGE_TARGET for windows/$arch" >&2; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
elif [ "$arch" != "$host_arch" ]; then
|
elif [ "$arch" != "$host_arch" ]; then
|
||||||
@@ -111,7 +112,9 @@ strip_bin() {
|
|||||||
[ -f "$file" ] || return 0
|
[ -f "$file" ] || return 0
|
||||||
case "$file" in
|
case "$file" in
|
||||||
*.exe)
|
*.exe)
|
||||||
if command -v x86_64-w64-mingw32-strip >/dev/null 2>&1; then
|
if [ "${target:-}" = "aarch64-pc-windows-gnullvm" ] && command -v llvm-strip >/dev/null 2>&1; then
|
||||||
|
llvm-strip "$file" 2>/dev/null || true
|
||||||
|
elif command -v x86_64-w64-mingw32-strip >/dev/null 2>&1; then
|
||||||
x86_64-w64-mingw32-strip "$file" 2>/dev/null || true
|
x86_64-w64-mingw32-strip "$file" 2>/dev/null || true
|
||||||
elif command -v strip >/dev/null 2>&1; then
|
elif command -v strip >/dev/null 2>&1; then
|
||||||
strip "$file" 2>/dev/null || true
|
strip "$file" 2>/dev/null || true
|
||||||
|
|||||||
Reference in New Issue
Block a user