Skip to content

Commit 96fc38f

Browse files
committed
adding risc ci
1 parent 4bb6fd1 commit 96fc38f

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/risc.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Ubuntu rvv VLEN=128 (clang 17)
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-24.04
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Install packages
17+
run: |
18+
sudo apt-get update -q -y
19+
sudo apt-get install -y cmake make g++-riscv64-linux-gnu qemu-user-static clang-17
20+
- name: Build
21+
run: |
22+
CXX=clang++-17 CXXFLAGS="--target=riscv64-linux-gnu -march=rv64gcv" \
23+
cmake --toolchain=cmake/toolchains-ci/riscv64-linux-gnu.cmake -DCMAKE_BUILD_TYPE=Release -B build
24+
cmake --build build/ -j$(nproc)
25+
- name: Test VLEN=128
26+
run: |
27+
export QEMU_LD_PREFIX="/usr/riscv64-linux-gnu"
28+
export QEMU_CPU="rv64,v=on,vlen=128,rvv_ta_all_1s=on,rvv_ma_all_1s=on"
29+
ctest --timeout 1800 --output-on-failure --test-dir build -j $(nproc)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set(CMAKE_SYSTEM_NAME Linux)
2+
set(CMAKE_SYSTEM_PROCESSOR riscv64)
3+
4+
set(CMAKE_CROSSCOMPILING_EMULATOR "qemu-riscv64-static")

0 commit comments

Comments
 (0)