Files
koboldcpp/.github/workflows/kcpp-build-release-linux-cuda12.yaml
T
2025-04-04 22:11:49 +08:00

45 lines
1.2 KiB
YAML

name: Koboldcpp Linux CUDA12
on: workflow_dispatch
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
KCPP_CUDA: 12.1.0
jobs:
linux:
runs-on: ubuntu-22.04
container:
image: ubuntu:20.04
options: --privileged
steps:
- name: Clone
id: checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref || github.ref_name }}
- name: Dependencies
id: depends
run: |
apt-get update
apt-get install -y sudo
export DEBIAN_FRONTEND=noninteractive
sudo ln -fs /usr/share/zoneinfo/UTC /etc/localtime
echo "tzdata tzdata/Areas select Etc" | sudo debconf-set-selections
echo "tzdata tzdata/Zones/Etc select UTC" | sudo debconf-set-selections
sudo apt-get -y install git curl bzip2 build-essential tcl-dev tk-dev python3-tk
- name: Build
id: make_build
env:
TCL_LIBRARY: /usr/lib/tcl8.6
TK_LIBRARY: /usr/lib/tk8.6
run: |
./koboldcpp.sh dist
- name: Save artifact
uses: actions/upload-artifact@v4
with:
name: kcpp_linux_binary
path: dist/