File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Koboldcpp Linux ROCm
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ commit_hash :
7+ description : ' Optional commit hash to build from'
8+ required : false
9+ default : ' '
10+
11+ env :
12+ BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
13+ KCPP_CUDA : rocm
14+ ARCHES_CU12 : 1
15+
16+ jobs :
17+ linux :
18+ runs-on : ubuntu-22.04
19+ container :
20+ image : ubuntu:22.04
21+ options : --privileged
22+ steps :
23+ - name : Clone
24+ id : checkout
25+ uses : actions/checkout@v3
26+ with :
27+ ref : ${{ inputs.commit_hash != '' && inputs.commit_hash || github.head_ref || github.ref_name }}
28+
29+ - name : Show Commit Used
30+ run : |
31+ echo "Building from ref: ${{ inputs.commit_hash != '' && inputs.commit_hash || github.head_ref || github.ref_name }}"
32+
33+ - name : Dependencies
34+ id : depends
35+ run : |
36+ apt-get update
37+ apt-get install -y sudo
38+ export DEBIAN_FRONTEND=noninteractive
39+ sudo ln -fs /usr/share/zoneinfo/UTC /etc/localtime
40+ echo "tzdata tzdata/Areas select Etc" | sudo debconf-set-selections
41+ echo "tzdata tzdata/Zones/Etc select UTC" | sudo debconf-set-selections
42+ sudo apt-get -y install git curl bzip2 python3-tk tcl tk
43+ curl -fLO https://repo.radeon.com/rocm/installer/rocm-runfile-installer/rocm-rel-6.4.1/ubuntu/22.04/rocm-installer_1.1.1.60401-30-83~22.04.run && sudo bash rocm-installer_1.1.1.60401-30-83~22.04.run deps=install rocm postrocm target="/opt"
44+
45+ - name : Set Tcl/Tk Paths
46+ run : |
47+ echo "TCL_LIBRARY=$(find /usr/lib/ -name 'tcl8*' | head -n 1)" >> $GITHUB_ENV
48+ echo "TK_LIBRARY=$(find /usr/lib/ -name 'tk8*' | head -n 1)" >> $GITHUB_ENV
49+
50+ - name : Build
51+ id : make_build
52+ run : |
53+ ./koboldcpp.sh dist
54+
55+ - name : Save artifact
56+ uses : actions/upload-artifact@v4
57+ with :
58+ name : kcpp_linux_binary
59+ path : dist/
You can’t perform that action at this time.
0 commit comments