Skip to content

array-record: add build-array-record.yml for riscv64 wheels - #786

Open
luhenry wants to merge 5 commits into
mainfrom
array-record
Open

array-record: add build-array-record.yml for riscv64 wheels#786
luhenry wants to merge 5 commits into
mainfrom
array-record

Conversation

@luhenry

@luhenry luhenry commented Aug 28, 2026

Copy link
Copy Markdown
Member

Bazel build of a pybind11 extension over the ArrayRecord C++ reader/writer, statically linking abseil, protobuf, riegeli, curl and BoringSSL. Upstream publishes no riscv64 wheel.

Mirrors upstream's build_and_publish_template.yml and oss/build_whl.sh.

Differs from upstream

  • bazel 7.5.0 bootstrapped from source, cached - the releases ship no riscv64 binary.
  • manylinux_2_39_riscv64 image instead of manylinux2014.
  • pip hubs pinned to CPython 3.8 fall back to another interpreter - python-build-standalone has no riscv64 3.8.
  • Packaging steps inlined from oss/build_whl.sh rather than running it.

Matrix: cp312/cp313/cp314 - upstream publishes no free-threaded wheel.

Testing

  • upstream's 13 bazel tests, then a write/read round trip against the installed wheel
  • drops upstream's tensorflow, jax and grain import checks - none has a riscv64 wheel

License: Wheel statically links abseil-cpp, BoringSSL, brotli, crc32c, curl, google-cloud-cpp, highwayhash, protobuf, pybind11, riegeli, snappy, zlib and zstd (Apache-2.0, BSD, MIT, curl and zlib terms); upstream ships no licence text for them, so the build adds it.

Built on cp312; 13 bazel tests passed.

The cp313 job failed in the first dnf call with 'Failed to download metadata
for repo extras: Cannot prepare internal mirrorlist: No URLs in mirrorlist'.
Nothing here comes from extras -- the JDK, zip, unzip and rsync are all in
baseos/appstream -- and its mirrorlist flakes, which build-memray.yml already
works around the same way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant