Skip to content

Commit 5d725df

Browse files
committed
ci: Add RISE RISC-V runner
Introduce the RISC-V CI runner provided by the RISE project. This enables automated testing and building for the RISC-V architecture. Signed-off-by: ihb2032 <hebome@foxmail.com>
1 parent 8169a60 commit 5d725df

2 files changed

Lines changed: 15 additions & 22 deletions

File tree

.github/workflows/01-ci-pipeline.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ jobs:
8484
os: ubuntu-24.04
8585
compiler: clang
8686

87+
build-and-test-linux-riscv64:
88+
name: Build & Test (linux-riscv64)
89+
needs: lint
90+
uses: ./.github/workflows/03-macos-linux-build.yml
91+
with:
92+
platform: linux-riscv64
93+
os: ubuntu-24.04-riscv
94+
8795
build-android:
8896
name: Build & Test (android)
8997
needs: lint

.github/workflows/03-macos-linux-build.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,23 @@ on:
44
workflow_call:
55
inputs:
66
platform:
7-
description: 'Platform identifier'
7+
description: "Platform identifier"
88
required: true
99
type: string
1010
os:
11-
description: 'GitHub Actions runner OS'
11+
description: "GitHub Actions runner OS"
1212
required: true
1313
type: string
1414
compiler:
15-
description: 'C++ compiler to use (gcc or clang)'
15+
description: "C++ compiler to use (gcc or clang)"
1616
required: false
1717
type: string
18-
default: ''
18+
default: ""
1919

2020
permissions:
2121
contents: read
2222

2323
jobs:
24-
# Build and test matrix (parallel execution)
2524
build-and-test:
2625
name: Build & Test (${{ inputs.platform }})
2726
runs-on: ${{ inputs.os }}
@@ -43,9 +42,9 @@ jobs:
4342
- name: Set up Python
4443
uses: actions/setup-python@v6
4544
with:
46-
python-version: '3.10'
47-
cache: 'pip'
48-
cache-dependency-path: 'pyproject.toml'
45+
python-version: "3.10"
46+
cache: "pip"
47+
cache-dependency-path: "pyproject.toml"
4948

5049
- name: Install Clang
5150
if: inputs.compiler == 'clang' && runner.os == 'Linux'
@@ -125,17 +124,3 @@ jobs:
125124
./core-example
126125
./ailego-example
127126
shell: bash
128-
129-
- name: Run C Examples
130-
run: |
131-
cd "$GITHUB_WORKSPACE/examples/c"
132-
mkdir build && cd build
133-
cmake .. -DCMAKE_BUILD_TYPE=Release
134-
make -j $NPROC
135-
./c_api_basic_example
136-
./c_api_collection_schema_example
137-
./c_api_doc_example
138-
./c_api_field_schema_example
139-
./c_api_index_example
140-
./c_api_optimized_example
141-
shell: bash

0 commit comments

Comments
 (0)