]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
ci: add riscv64 wheel builds via QEMU (#13183)
authorBruno Verachten <gounthar@gmail.com>
Wed, 18 Mar 2026 19:49:31 +0000 (20:49 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Mar 2026 19:49:31 +0000 (20:49 +0100)
Signed-off-by: Bruno Verachten <gounthar@gmail.com>
.github/workflows/create-wheels.yaml
pyproject.toml

index 8c4e053c62380110b51b253715becf4401563fef..60c407359f19951591b09cb59cddbf4ddc8c0c97 100644 (file)
@@ -35,6 +35,7 @@ jobs:
           # this is only meaningful on linux. windows and macos ignore exclude all but one arch
           - "aarch64"
           - "x86_64"
+          - "riscv64"
 
         include:
           # create pure python build
@@ -54,12 +55,26 @@ jobs:
             linux_archs: "aarch64"
           - os: "ubuntu-22.04-arm"
             linux_archs: "x86_64"
+          - os: "windows-2022"
+            linux_archs: "riscv64"
+          - os: "windows-11-arm"
+            linux_archs: "riscv64"
+          - os: "macos-15"
+            linux_archs: "riscv64"
+          - os: "ubuntu-22.04-arm"
+            linux_archs: "riscv64"
 
       fail-fast: false
 
     steps:
       - uses: actions/checkout@v4
 
+      - name: Set up QEMU
+        if: matrix.linux_archs == 'riscv64'
+        uses: docker/setup-qemu-action@v3
+        with:
+          platforms: riscv64
+
       - name: Remove tag-build from pyproject.toml
         # sqlalchemy has `tag-build` set to `dev` in pyproject.toml. It needs to be removed before creating the wheel
         # otherwise it gets tagged with `dev0`
index 022cc67c8f75f0b2bca71e2a02904b886ba4f20f..f5340bb489cdb92e480656e16db5a9f0181663f6 100644 (file)
@@ -364,4 +364,4 @@ archs = ["arm64"]
 # On an Linux Intel runner with qemu installed, build Intel and ARM wheels
 # NOTE: this is overridden in the pipeline using the CIBW_ARCHS_LINUX env variable to speed up the build
 [tool.cibuildwheel.linux]
-archs = ["x86_64", "aarch64"]
+archs = ["x86_64", "aarch64", "riscv64"]