build(bigtable): package prebuilt accelerator daemon into a linux/amd64 wheel - #7
build(bigtable): package prebuilt accelerator daemon into a linux/amd64 wheel#7mutianf wants to merge 3 commits into
Conversation
4632aa5 to
f708faf
Compare
f708faf to
9e098e9
Compare
9e098e9 to
c348f7b
Compare
… linux wheel Change-Id: Iaaa281865332203180bbe1013690e9cf1191827c
c348f7b to
dde2db5
Compare
| fi | ||
|
|
||
| # Map GOARCH -> manylinux platform tag + the `file(1)` arch string we expect. | ||
| case "${GOARCH}" in |
There was a problem hiding this comment.
Add the following build targets:
TARGETS=(
# Linux Builds
"linux 386"
"linux amd64"
"linux arm64"
# Mac Builds
"darwin amd64"
"darwin arm64"
# Windows Builds
"windows 386"
"windows amd64"
)
And update the script to avoid deleting a previously built binary
There was a problem hiding this comment.
Done in aa431f7. The script now loops over the full TARGETS matrix (linux 386/amd64/arm64, darwin amd64/arm64, windows 386/amd64), cross-compiling each with CGO_ENABLED=0 from a single host and emitting one platform-tagged wheel per target.
On not deleting previously-built binaries: each cross-compiled binary is kept under a per-target staging dir (accelerator-<goos>-<goarch>[.exe]) so a later target never clobbers an earlier one. Only the current target's binary is staged into bin/ right before its wheel build (MANIFEST bundles whatever is in bin/, so we clear it between iterations to avoid shipping two daemons). dist/ is cleaned once up front and wheels accumulate across the run. Per-target file(1) verification is kept so a mis-cross-compiled binary can't get sealed into a mislabeled wheel.
…arwin/windows target matrix Change-Id: I14a3f6a33579ddbce960435312f22ce0000409a5
…on Windows Change-Id: I9f5639b508a7f9e3b0f0599c9692c5ee8bb1db7e
Stack PR 7/7 — base:
accel-06-client-version-user-agentPackages the prebuilt daemon binary into a linux/amd64 wheel:
MANIFEST.in,setup.pyplatform-wheel wiring, PEP 440-tolerant version parsing, version bump to3.0.0a0, andscripts/build_wheel.sh.Accelerator stack