File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 44  workflow_call :
55
66jobs :
7+   ubuntu-latest-riscv64-cpu-cross :
8+     runs-on : ubuntu-latest 
9+ 
10+     steps :
11+       - uses : actions/checkout@v4 
12+       - name : Setup Riscv 
13+         run : | 
14+           sudo dpkg --add-architecture riscv64 
15+           sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu|http://ports.ubuntu.com/ubuntu-ports|g' \ 
16+                  /etc/apt/sources.list /etc/apt/apt-mirrors.txt 
17+           sudo apt-get clean 
18+           sudo apt-get update 
19+           sudo apt-get install -y --no-install-recommends \ 
20+                   build-essential \ 
21+                   crossbuild-essential-riscv64 
22+ 
23+        - name : Build 
24+         run : | 
25+           cmake -B build -DCMAKE_BUILD_TYPE=Release \ 
26+                          -DGGML_OPENMP=OFF \ 
27+                          -DLLAMA_BUILD_EXAMPLES=ON \ 
28+                          -DLLAMA_BUILD_TESTS=OFF \ 
29+                          -DCMAKE_SYSTEM_NAME=Linux \ 
30+                          -DCMAKE_SYSTEM_PROCESSOR=riscv64 \ 
31+                          -DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc \ 
32+                          -DCMAKE_CXX_COMPILER=riscv64-linux-gnu-g++ \ 
33+                          -DCMAKE_C_FLAGS_INIT='-fPIC' \ 
34+                          -DCMAKE_CXX_FLAGS_INIT='-fPIC' \ 
35+                          -DCMAKE_FIND_ROOT_PATH=/usr/lib/riscv64-linux-gnu \ 
36+                          -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \ 
37+                          -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ 
38+                          -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH 
39+ 
40+           cmake --build build --config Release -j $(nproc) 
41+ 
742   ubuntu-latest-riscv64-vulkan-cross :
843    runs-on : ubuntu-latest 
944
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments