Skip to content
Open
Changes from 2 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
34 changes: 33 additions & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,38 @@ jobs:
name: cibw-wheels-aarch64-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

build_wheels_riscv64:
name: py${{ matrix.python-version }} on ubuntu-latest (riscv64)
runs-on: ubuntu-latest
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
python-version: [310, 311, 312, 313, 313t, 314, 314t]

steps:
- uses: actions/checkout@v6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use a pinned version as other jobs do?

- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@justeph Done. Pinned all four actions in the riscv64 job (checkout, setup-qemu-action, cibuildwheel, upload-artifact) to commit hashes, matching the pattern used in the other jobs.


- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: linux/riscv64

- name: Build wheels
uses: pypa/cibuildwheel@v3.1.4

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here pinned version

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@justeph Fixed in the same commit.

env:
CIBW_BUILD: "cp${{ matrix.python-version}}-*"
CIBW_ARCHS: riscv64
CIBW_SKIP: "*-musllinux*"
CIBW_BUILD_VERBOSITY: 3
CIBW_ENVIRONMENT_LINUX: PATH="$PATH:$HOME/.cargo/bin" CARGO_NET_GIT_FETCH_WITH_CLI=true
CIBW_ENABLE: cpython-freethreading

- uses: actions/upload-artifact@v6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here pinned version

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@justeph Fixed in the same commit.

with:
name: cibw-wheels-riscv64-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

build_sdist:
name: sdist
runs-on: ubuntu-latest
Expand All @@ -86,7 +118,7 @@ jobs:
join_artifacts:
name: Join artifacts
runs-on: ubuntu-latest
needs: [build_wheels, build_wheels_aarch64, build_sdist]
needs: [build_wheels, build_wheels_aarch64, build_wheels_riscv64, build_sdist]
steps:
- name: Merge artifacts
uses: actions/upload-artifact/merge@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
Expand Down