Skip to content

Commit e86229a

Browse files
authored
enh: add support for riscv64 architecture for taos-ws-py (#389)
1 parent 73cd399 commit e86229a

4 files changed

Lines changed: 34 additions & 13 deletions

File tree

.github/workflows/taos-ws-py.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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 }}

taos-ws-py/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Conventional Changelog](https://www.conventionalcommits.org/en/v1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## v0.6.9 - 2026-04-21
9+
10+
### Enhancements:
11+
12+
- Added support for the riscv64 architecture.
13+
814
## v0.6.8 - 2026-04-09
915

1016
### Features:

taos-ws-py/Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

taos-ws-py/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "taos-ws-py"
3-
version = "0.6.8"
3+
version = "0.6.9"
44
edition = "2021"
55
publish = false
66
license = "MIT"

0 commit comments

Comments
 (0)