commit 9c7c7f0c1e45b3cc056a507c52ea52898b2b04c9
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2026-05-30T16:47:03Z |
| subject | Adding riscv64 |
commit 9c7c7f0c1e45b3cc056a507c52ea52898b2b04c9
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2026-05-30T16:47:03Z
Adding riscv64
---
.github/workflows/cmake-multi-platform.yml | 40 ++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml
index 65d336e..8022b50 100644
--- a/.github/workflows/cmake-multi-platform.yml
+++ b/.github/workflows/cmake-multi-platform.yml
@@ -138,6 +138,45 @@ jobs:
- *package_unix
- *upload_unix
+ linux-riscv64:
+ name: Linux riscv64 (test only)
+ runs-on: ubuntu-latest
+ continue-on-error: true
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v4
+ with:
+ platforms: riscv64
+
+ - name: Build and test under riscv64
+ run: |
+ docker run --rm \
+ --platform linux/riscv64 \
+ -v "$PWD:/work" \
+ -w /work \
+ riscv64/debian:unstable \
+ sh -euxc '
+ apt-get update
+ apt-get install -y --no-install-recommends \
+ build-essential \
+ libevent-dev \
+ pkg-config \
+ python3 \
+ ca-certificates
+
+ make clean all
+
+ make test \
+ CONCURRENCY=20 \
+ TOTAL=20 \
+ FD_LIMIT=512 \
+ LARGE_ROUNDTRIP_SIZE=4096 \
+ SEQUENTIAL_CONNECTIONS=20
+ '
+
freebsd-amd64:
name: FreeBSD amd64
runs-on: ubuntu-latest
@@ -271,6 +310,7 @@ jobs:
needs:
- linux-musl-x86_64
- linux-musl-arm64
+ - freebsd-amd64
- macos
- windows