From 508eb45aada9b255932caec62e8c92ec08123d2f Mon Sep 17 00:00:00 2001 From: ffgan Date: Wed, 17 Sep 2025 21:58:28 +0800 Subject: [PATCH 1/3] build wheel for riscv64 Co-authored by: nijincheng@iscas.ac.cn; --- .github/workflows/kit.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.yml index e84e6d9bb..e49e39cd3 100644 --- a/.github/workflows/kit.yml +++ b/.github/workflows/kit.yml @@ -73,7 +73,7 @@ jobs: # # # For each OS, what arch to use with cibuildwheel: # os_archs = { - # "ubuntu": ["x86_64", "i686", "aarch64"], + # "ubuntu": ["x86_64", "i686", "aarch64", "riscv64"], # "macos": ["arm64", "x86_64"], # "windows": ["x86", "AMD64", "ARM64"], # } @@ -128,6 +128,12 @@ jobs: - {"os": "ubuntu", "py": "cp312", "arch": "aarch64", "os-version": "22.04-arm"} - {"os": "ubuntu", "py": "cp313", "arch": "aarch64", "os-version": "22.04-arm"} - {"os": "ubuntu", "py": "cp314", "arch": "aarch64", "os-version": "22.04-arm"} + - {"os": "ubuntu", "py": "cp39", "arch": "riscv64"} + - {"os": "ubuntu", "py": "cp310", "arch": "riscv64"} + - {"os": "ubuntu", "py": "cp311", "arch": "riscv64"} + - {"os": "ubuntu", "py": "cp312", "arch": "riscv64"} + - {"os": "ubuntu", "py": "cp313", "arch": "riscv64"} + - {"os": "ubuntu", "py": "cp314", "arch": "riscv64"} - {"os": "macos", "py": "cp39", "arch": "arm64", "os-version": "13"} - {"os": "macos", "py": "cp310", "arch": "arm64", "os-version": "13"} - {"os": "macos", "py": "cp311", "arch": "arm64", "os-version": "13"} @@ -156,7 +162,7 @@ jobs: - {"os": "windows", "py": "cp312", "arch": "ARM64", "os-version": "11-arm"} - {"os": "windows", "py": "cp313", "arch": "ARM64", "os-version": "11-arm"} - {"os": "windows", "py": "cp314", "arch": "ARM64", "os-version": "11-arm"} - # [[[end]]] (sum: 7BoHzaIHKR) + # [[[end]]] (sum: 0tXzcJPEQS) # ^^^^^^^^^^^^^^^ # If a check fails and points to this checksum line, it means you edited # the matrix directly instead of editing the Python code in the comment @@ -193,7 +199,9 @@ jobs: - name: "Install tools" run: | python -m pip install -r requirements/kit.pip - + - name: Set up QEMU + if: ${{ matrix.arch == 'riscv64' }} + uses: docker/setup-qemu-action@v3 - name: "Build binary wheels" env: CIBW_BUILD: ${{ matrix.py }}*-* From b37a011bd852d67a756a0cf19d0408acdd9a09d5 Mon Sep 17 00:00:00 2001 From: ffgan Date: Wed, 17 Sep 2025 22:22:52 +0800 Subject: [PATCH 2/3] update `EXPECTED` number for riscv64 Co-authored by: nijincheng@iscas.ac.cn; --- .github/workflows/kit.yml | 2 +- .github/workflows/publish.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.yml index e49e39cd3..8775b655b 100644 --- a/.github/workflows/kit.yml +++ b/.github/workflows/kit.yml @@ -36,7 +36,7 @@ env: PIP_DISABLE_PIP_VERSION_CHECK: 1 # PYVERSIONS: changing the list of versions will change the number of # expected distributions. This must match the same number in publish.yml. - EXPECTED: 88 + EXPECTED: 104 permissions: contents: read diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6b841104c..fc7bd1733 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,7 +17,7 @@ defaults: env: # PYVERSIONS: changing the list of versions will change the number of # expected distributions. This must match the same number in kit.yml. - EXPECTED: 88 + EXPECTED: 104 permissions: contents: read From dcce5ca74f462b44576df7581b5e446325d53cc3 Mon Sep 17 00:00:00 2001 From: ffgan Date: Wed, 17 Sep 2025 22:44:17 +0800 Subject: [PATCH 3/3] pin `setup-qemu-action` version for CI Co-authored by: nijincheng@iscas.ac.cn; --- .github/workflows/kit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.yml index 8775b655b..2acfe9c60 100644 --- a/.github/workflows/kit.yml +++ b/.github/workflows/kit.yml @@ -201,7 +201,7 @@ jobs: python -m pip install -r requirements/kit.pip - name: Set up QEMU if: ${{ matrix.arch == 'riscv64' }} - uses: docker/setup-qemu-action@v3 + uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0 - name: "Build binary wheels" env: CIBW_BUILD: ${{ matrix.py }}*-*