Skip to content
Open
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
47 changes: 47 additions & 0 deletions packages/google-crc32c/.github/workflows/riscv64-wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "Build riscv64 wheels"

on:
pull_request:
branches:
- main
paths:
- 'packages/google-crc32c/**'
push:
branches:
- main
paths:
- 'packages/google-crc32c/**'

permissions:
contents: read

jobs:
build-riscv64:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up QEMU
# v4.0.0
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a
with:
platforms: riscv64

- name: Build riscv64 wheels
env:
WORKSPACE: ${{ github.workspace }}
run: |
IMAGE=quay.io/pypa/manylinux_2_39_riscv64
VOLUME="${WORKSPACE}/packages/google-crc32c:/var/code/python-crc32c/"
docker pull "${IMAGE}"
docker run --rm --volume "${VOLUME}" "${IMAGE}" \
/var/code/python-crc32c/scripts/manylinux/build_on_centos.sh

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: riscv64-wheels
path: packages/google-crc32c/wheels/
9 changes: 9 additions & 0 deletions packages/google-crc32c/scripts/manylinux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ docker run \
quay.io/pypa/manylinux2014_aarch64 \
/var/code/python-crc32c/scripts/manylinux/build_on_centos.sh

docker pull quay.io/pypa/manylinux_2_39_riscv64
docker run \
--rm \
--interactive \
--volume ${REPO_ROOT}:/var/code/python-crc32c/ \
--env BUILD_PYTHON=${BUILD_PYTHON} \
quay.io/pypa/manylinux_2_39_riscv64 \
/var/code/python-crc32c/scripts/manylinux/build_on_centos.sh

if [[ "${PUBLISH_WHEELS}" == "true" ]]; then
. /${MANYLINUX_DIR}/publish_python_wheel.sh
fi
Loading