Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/build-google-crc32c.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2026 The RISE Project
# SPDX-License-Identifier: MIT
---
# This workflow is based on: https://github.com/googleapis/python-crc32c/blob/v1.8.0/scripts/manylinux/build_on_centos.sh
# This workflow is based on: https://github.com/googleapis/google-cloud-python/blob/google-crc32c-v1.9.0/packages/google-crc32c/scripts/manylinux/build_on_centos.sh
name: Build google-crc32c wheels (riscv64)

on:
Expand Down Expand Up @@ -55,23 +55,28 @@ jobs:
GOOGLE_CRC32C_VERSION: ${{ matrix.version }}

steps:
- name: Checkout python-crc32c v${{ env.GOOGLE_CRC32C_VERSION }}
# googleapis/python-crc32c was archived after 1.8.0; the package now
# lives in the google-cloud-python monorepo under per-package tags.
- name: Checkout google-cloud-python google-crc32c-v${{ env.GOOGLE_CRC32C_VERSION }}
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: googleapis/python-crc32c
ref: v${{ env.GOOGLE_CRC32C_VERSION }}
repository: googleapis/google-cloud-python
ref: google-crc32c-v${{ env.GOOGLE_CRC32C_VERSION }}
sparse-checkout: packages/google-crc32c
submodules: recursive
persist-credentials: false

- uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0
with:
package-dir: packages/google-crc32c
env:
CIBW_ARCHS: riscv64
CIBW_BUILD: ${{ matrix.python }}-manylinux_riscv64
CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }}
# Build libcrc32c into the default prefix so setup.py's -lcrc32c resolves.
# POLICY_VERSION_MINIMUM: the pinned crc32c still declares cmake_minimum 3.1.
CIBW_BEFORE_ALL_LINUX: >-
cmake -S {project}/google_crc32c -B /tmp/crc32c-build
cmake -S {project}/packages/google-crc32c/google_crc32c -B /tmp/crc32c-build
-DCMAKE_BUILD_TYPE=Release
-DCRC32C_BUILD_TESTS=no
-DCRC32C_BUILD_BENCHMARKS=no
Expand Down
3 changes: 2 additions & 1 deletion docs/packages/google-crc32c.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package-name: google-crc32c
source-code: https://github.com/googleapis/python-crc32c
source-code: https://github.com/googleapis/google-cloud-python
license: Unknown
versions:
- version: 1.8.0
Expand All @@ -17,3 +17,4 @@ versions:
- filename: google_crc32c-1.8.0-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl
sha256: f2c75d1753b3c32accfb4688b0d8af20d3557abc0be0201c245e1987f07923ce
requires-python: '>=3.9'
- version: 1.9.0
Loading