mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-08 10:07:01 +00:00
ci : disable failing riscv cross build (#16952)
This commit is contained in:
74
.github/workflows/build-linux-cross.yml
vendored
74
.github/workflows/build-linux-cross.yml
vendored
@@ -4,49 +4,49 @@ on:
|
|||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-24-riscv64-cpu-cross:
|
# ubuntu-24-riscv64-cpu-cross:
|
||||||
runs-on: ubuntu-24.04
|
# runs-on: ubuntu-24.04
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
- name: Setup Riscv
|
# - name: Setup Riscv
|
||||||
run: |
|
# run: |
|
||||||
sudo dpkg --add-architecture riscv64
|
# sudo dpkg --add-architecture riscv64
|
||||||
|
|
||||||
# Add arch-specific repositories for non-amd64 architectures
|
# # Add arch-specific repositories for non-amd64 architectures
|
||||||
cat << EOF | sudo tee /etc/apt/sources.list.d/riscv64-ports.list
|
# cat << EOF | sudo tee /etc/apt/sources.list.d/riscv64-ports.list
|
||||||
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble main universe
|
# deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble main universe
|
||||||
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-updates main universe
|
# deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-updates main universe
|
||||||
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-security main universe
|
# deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-security main universe
|
||||||
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-backports main universe
|
# deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-backports main universe
|
||||||
EOF
|
# EOF
|
||||||
|
|
||||||
sudo apt-get update || true ;# Prevent failure due to missing URLs.
|
# sudo apt-get update || true ;# Prevent failure due to missing URLs.
|
||||||
|
|
||||||
sudo apt-get install -y --no-install-recommends \
|
# sudo apt-get install -y --no-install-recommends \
|
||||||
build-essential \
|
# build-essential \
|
||||||
gcc-14-riscv64-linux-gnu \
|
# gcc-14-riscv64-linux-gnu \
|
||||||
g++-14-riscv64-linux-gnu
|
# g++-14-riscv64-linux-gnu
|
||||||
|
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: |
|
# run: |
|
||||||
cmake -B build -DLLAMA_CURL=OFF \
|
# cmake -B build -DLLAMA_CURL=OFF \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
# -DCMAKE_BUILD_TYPE=Release \
|
||||||
-DGGML_OPENMP=OFF \
|
# -DGGML_OPENMP=OFF \
|
||||||
-DLLAMA_BUILD_EXAMPLES=ON \
|
# -DLLAMA_BUILD_EXAMPLES=ON \
|
||||||
-DLLAMA_BUILD_TOOLS=ON \
|
# -DLLAMA_BUILD_TOOLS=ON \
|
||||||
-DLLAMA_BUILD_TESTS=OFF \
|
# -DLLAMA_BUILD_TESTS=OFF \
|
||||||
-DCMAKE_SYSTEM_NAME=Linux \
|
# -DCMAKE_SYSTEM_NAME=Linux \
|
||||||
-DCMAKE_SYSTEM_PROCESSOR=riscv64 \
|
# -DCMAKE_SYSTEM_PROCESSOR=riscv64 \
|
||||||
-DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc-14 \
|
# -DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc-14 \
|
||||||
-DCMAKE_CXX_COMPILER=riscv64-linux-gnu-g++-14 \
|
# -DCMAKE_CXX_COMPILER=riscv64-linux-gnu-g++-14 \
|
||||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
# -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
||||||
-DCMAKE_FIND_ROOT_PATH=/usr/lib/riscv64-linux-gnu \
|
# -DCMAKE_FIND_ROOT_PATH=/usr/lib/riscv64-linux-gnu \
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
|
# -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
|
# -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
|
# -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
|
||||||
|
|
||||||
cmake --build build --config Release -j $(nproc)
|
# cmake --build build --config Release -j $(nproc)
|
||||||
|
|
||||||
# ubuntu-24-riscv64-vulkan-cross:
|
# ubuntu-24-riscv64-vulkan-cross:
|
||||||
# runs-on: ubuntu-24.04
|
# runs-on: ubuntu-24.04
|
||||||
|
|||||||
Reference in New Issue
Block a user