@@ -244,7 +244,17 @@ jobs:
244244 CFLAGS : " -fno-builtin"
245245 strategy :
246246 matrix :
247- target : [aarch64, armv7]
247+ target : [aarch64, armv7, riscv64]
248+ include :
249+ - target : aarch64
250+ docker_cflags : ' -e "CFLAGS_aarch64_unknown_linux_gnu=-D__ARM_ARCH=8"'
251+ distro : ubuntu20.04
252+ - target : armv7
253+ docker_cflags : ' -e "CFLAGS_armv7_unknown_linux_gnueabihf=-D__ARM_ARCH=7"'
254+ distro : ubuntu20.04
255+ - target : riscv64
256+ docker_cflags : ' '
257+ distro : ubuntu24.04
248258 steps :
249259 - uses : actions/checkout@v4
250260
@@ -260,24 +270,25 @@ jobs:
260270 target : ${{ matrix.target }}
261271 rust-toolchain : stable
262272 working-directory : taos-ws-py
263- docker-options : -e "CFLAGS_aarch64_unknown_linux_gnu=-D__ARM_ARCH=8" -e "CFLAGS_armv7_unknown_linux_gnueabihf=-D__ARM_ARCH=7" -e GIT_COMMIT_ID=${{ needs.rebuild.outputs.git_commit_id }}
273+ docker-options : ${{ matrix.docker_cflags }} -e GIT_COMMIT_ID=${{ needs.rebuild.outputs.git_commit_id }}
264274 manylinux : auto
265275 args : --release --strip
266276 before-script-linux : |
267- apt-get install -y libc6-dev libc6-dev-arm64-cross libc6-dev-armhf-cross libc6-dev-armel-cross
277+ apt-get install -y libc6-dev libc6-dev-arm64-cross libc6-dev-armhf-cross libc6-dev-armel-cross libc6-dev-riscv64-cross
268278 curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/download/v0.69.5/bindgen-cli-installer.sh | sh
269279
270- - uses : uraimo/run-on-arch-action@v2
271- name : Install built wheel
280+ - name : Install built wheel
281+ uses : uraimo/run-on-arch-action@v3
272282 with :
273283 arch : ${{ matrix.target }}
274- distro : ubuntu20.04
284+ distro : ${{ matrix.distro }}
275285 githubToken : ${{ github.token }}
276286 install : |
277287 apt-get update
278- apt-get install -y --no-install-recommends python3 python3-pip
279- pip3 install -U pip
280- run : pip3 install taos-ws-py --no-index --find-links taos-ws-py/target/wheels/ --force-reinstall
288+ apt-get install -y --no-install-recommends python3 python3-pip python3-venv
289+ python3 -m venv /opt/venv
290+ /opt/venv/bin/pip install -U pip
291+ run : /opt/venv/bin/pip install taos-ws-py --no-index --find-links taos-ws-py/target/wheels/ --force-reinstall
281292
282293 - name : Upload wheels linux-cross
283294 uses : actions/upload-artifact@v4
@@ -311,6 +322,10 @@ jobs:
311322 with :
312323 name : taos-ws-py-cross-armv7
313324
325+ - uses : actions/download-artifact@v4
326+ with :
327+ name : taos-ws-py-cross-riscv64
328+
314329 - uses : actions/setup-python@v5
315330 with :
316331 python-version : ${{ env.PYTHON_VERSION }}
0 commit comments