mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 09:34:37 +00:00
try allow build from commit hash
This commit is contained in:
parent
5908f2ca19
commit
b42fa821d8
2 changed files with 13 additions and 126 deletions
124
.github/workflows/build-linux-cross.yml
vendored
124
.github/workflows/build-linux-cross.yml
vendored
|
@ -1,124 +0,0 @@
|
||||||
name: Build on Linux using cross-compiler
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
workflow_call:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
ubuntu-latest-riscv64-cpu-cross:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Setup Riscv
|
|
||||||
run: |
|
|
||||||
sudo dpkg --add-architecture riscv64
|
|
||||||
sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu|http://ports.ubuntu.com/ubuntu-ports|g' \
|
|
||||||
/etc/apt/sources.list /etc/apt/apt-mirrors.txt
|
|
||||||
sudo apt-get clean
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y --no-install-recommends \
|
|
||||||
build-essential \
|
|
||||||
gcc-14-riscv64-linux-gnu \
|
|
||||||
g++-14-riscv64-linux-gnu \
|
|
||||||
libcurl4-openssl-dev:riscv64
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
cmake -B build -DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DGGML_OPENMP=OFF \
|
|
||||||
-DLLAMA_BUILD_EXAMPLES=ON \
|
|
||||||
-DLLAMA_BUILD_TESTS=OFF \
|
|
||||||
-DCMAKE_SYSTEM_NAME=Linux \
|
|
||||||
-DCMAKE_SYSTEM_PROCESSOR=riscv64 \
|
|
||||||
-DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc-14 \
|
|
||||||
-DCMAKE_CXX_COMPILER=riscv64-linux-gnu-g++-14 \
|
|
||||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH=/usr/lib/riscv64-linux-gnu \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
|
|
||||||
|
|
||||||
cmake --build build --config Release -j $(nproc)
|
|
||||||
|
|
||||||
ubuntu-latest-riscv64-vulkan-cross:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup Riscv
|
|
||||||
run: |
|
|
||||||
sudo dpkg --add-architecture riscv64
|
|
||||||
sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu|http://ports.ubuntu.com/ubuntu-ports|g' \
|
|
||||||
/etc/apt/sources.list /etc/apt/apt-mirrors.txt
|
|
||||||
sudo apt-get clean
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y --no-install-recommends \
|
|
||||||
build-essential \
|
|
||||||
glslc \
|
|
||||||
gcc-14-riscv64-linux-gnu \
|
|
||||||
g++-14-riscv64-linux-gnu \
|
|
||||||
libvulkan-dev:riscv64 \
|
|
||||||
libcurl4-openssl-dev:riscv64
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
cmake -B build -DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DGGML_VULKAN=ON \
|
|
||||||
-DGGML_OPENMP=OFF \
|
|
||||||
-DLLAMA_BUILD_EXAMPLES=ON \
|
|
||||||
-DLLAMA_BUILD_TESTS=OFF \
|
|
||||||
-DCMAKE_SYSTEM_NAME=Linux \
|
|
||||||
-DCMAKE_SYSTEM_PROCESSOR=riscv64 \
|
|
||||||
-DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc-14 \
|
|
||||||
-DCMAKE_CXX_COMPILER=riscv64-linux-gnu-g++-14 \
|
|
||||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH=/usr/lib/riscv64-linux-gnu \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
|
|
||||||
|
|
||||||
cmake --build build --config Release -j $(nproc)
|
|
||||||
|
|
||||||
ubuntu-latest-arm64-vulkan-cross:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup Arm64
|
|
||||||
run: |
|
|
||||||
sudo dpkg --add-architecture arm64
|
|
||||||
sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu|http://ports.ubuntu.com/ubuntu-ports|g' \
|
|
||||||
/etc/apt/sources.list /etc/apt/apt-mirrors.txt
|
|
||||||
sudo apt-get clean
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y --no-install-recommends \
|
|
||||||
build-essential \
|
|
||||||
glslc \
|
|
||||||
crossbuild-essential-arm64 \
|
|
||||||
libvulkan-dev:arm64 \
|
|
||||||
libcurl4-openssl-dev:arm64
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
cmake -B build -DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DGGML_VULKAN=ON \
|
|
||||||
-DGGML_OPENMP=OFF \
|
|
||||||
-DLLAMA_BUILD_EXAMPLES=ON \
|
|
||||||
-DLLAMA_BUILD_TESTS=OFF \
|
|
||||||
-DCMAKE_SYSTEM_NAME=Linux \
|
|
||||||
-DCMAKE_SYSTEM_PROCESSOR=aarch64 \
|
|
||||||
-DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc \
|
|
||||||
-DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ \
|
|
||||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH=/usr/lib/aarch64-linux-gnu \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
|
|
||||||
|
|
||||||
cmake --build build --config Release -j $(nproc)
|
|
|
@ -1,6 +1,13 @@
|
||||||
name: Koboldcpp Windows Full Binaries CUDA 12
|
name: Koboldcpp Windows Full Binaries CUDA 12
|
||||||
|
|
||||||
on: workflow_dispatch
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
commit_hash:
|
||||||
|
description: 'Optional commit hash to build from'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||||
|
|
||||||
|
@ -12,7 +19,11 @@ jobs:
|
||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref || github.ref_name }}
|
ref: ${{ inputs.commit_hash != '' && inputs.commit_hash || github.head_ref || github.ref_name }}
|
||||||
|
|
||||||
|
- name: Show Commit Used
|
||||||
|
run: |
|
||||||
|
echo "Building from ref: ${{ inputs.commit_hash != '' && inputs.commit_hash || github.head_ref || github.ref_name }}"
|
||||||
|
|
||||||
- name: Get Python
|
- name: Get Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue