esafak commented on code in PR #2483:
URL: https://github.com/apache/fory/pull/2483#discussion_r2280106212
##########
ci/build_manylinux_wheel.sh:
##########
@@ -0,0 +1,140 @@
+#!/usr/bin/env bash
+# Usage:
+# ./build_manylinux_wheel.sh --os <matrix.os> --python <python-version> \
+# --arch <ARCH> [--workspace <path>] [--x86-image <image>] \
+# [--aarch64-image <image>] [--docker-image <image>] [--dry-run]
+#
+# Examples:
+# ./build_manylinux_wheel.sh --os ubuntu-latest --python 3.10 --arch X64
+# ./build_manylinux_wheel.sh --os ubuntu-24.04-arm --python 3.11 --arch
ARM64 \
+# --aarch64-image quay.io/pypa/manylinux_2014_aarch64:latest
+#
+# Notes:
+# --arch accepts values: X86, X64, ARM, or ARM64 (case-insensitive).
+# This script requires --arch to be provided explicitly.
+set -euo pipefail
+
+print_usage() {
+ cat <<EOF
+Usage: $0 --os <matrix.os> --python <python-version> --arch <ARCH> [options]
+
+Required:
+ --os matrix.os value (e.g. ubuntu-latest or ubuntu-24.04-arm)
+ --python Python version (e.g. 3.10)
+ --arch Architecture (X86, X64, ARM, or ARM64)
+
+Optional:
+ --workspace Path to workspace to mount into container (default: cwd)
+ --x86-image manylinux x86_64 docker image (overrides default env)
+ --aarch64-image manylinux aarch64 docker image (overrides default env)
+ --docker-image Explicit docker image to use (skips auto selection)
+ --dry-run Print the docker command without executing it
+ -h, --help Show this help
+EOF
+}
+
+# Defaults - can be overridden by options
+WORKSPACE="${GITHUB_WORKSPACE:-$(pwd)}"
+MANYLINUX_X86_64_IMAGE="${MANYLINUX_X86_64_IMAGE:-quay.io/pypa/manylinux_2_28_x86_64:latest}"
Review Comment:
Let's do that in another PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]