File tree Expand file tree Collapse file tree 2 files changed +43
-92
lines changed Expand file tree Collapse file tree 2 files changed +43
-92
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Build on RISCV Linux Machine by Cloud-V
2+ on :
3+ workflow_dispatch :
4+ workflow_call :
5+
6+ jobs :
7+ bianbu-riscv64-native : # Bianbu 2.2
8+ runs-on : self-hosted
9+
10+ steps :
11+ - name : Install prerequisites
12+ run : |
13+ sudo apt-get update || true
14+ sudo apt-get install -y libatomic1
15+ - uses : actions/checkout@v4
16+ - name : Setup Riscv
17+ run : |
18+ sudo apt-get update || true
19+ sudo apt-get install -y --no-install-recommends \
20+ build-essential \
21+ gcc-14-riscv64-linux-gnu \
22+ g++-14-riscv64-linux-gnu \
23+ cmake
24+
25+ - name : Build
26+ run : |
27+ cmake -B build -DLLAMA_CURL=OFF \
28+ -DCMAKE_BUILD_TYPE=Release \
29+ -DGGML_OPENMP=OFF \
30+ -DLLAMA_BUILD_EXAMPLES=ON \
31+ -DLLAMA_BUILD_TOOLS=ON \
32+ -DLLAMA_BUILD_TESTS=OFF \
33+ -DCMAKE_SYSTEM_NAME=Linux \
34+ -DCMAKE_SYSTEM_PROCESSOR=riscv64 \
35+ -DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc-14 \
36+ -DCMAKE_CXX_COMPILER=riscv64-linux-gnu-g++-14 \
37+ -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
38+ -DCMAKE_FIND_ROOT_PATH=/usr/lib/riscv64-linux-gnu \
39+ -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
40+ -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
41+ -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
42+
43+ cmake --build build --config Release -j $(nproc)
You can’t perform that action at this time.
0 commit comments