CUDA 12 CI (#815)

* Allow KCPP_CUDA to specify CUDA version

* CUDA 12 CI Linux

* CUDA 12 CI

* Fix KCPP_CUDA indent

* KCPP_CUDA ENV Fix

StackOverflow is bad for advice sometimes....

* Lowcase cuda on output filename

* Strip . from filename output
This commit is contained in:
henk717
2024-05-03 11:12:57 +02:00
committed by GitHub
parent a34a09d196
commit b6bfab128f
3 changed files with 83 additions and 5 deletions
@@ -0,0 +1,33 @@
name: Koboldcpp Builder Linux CUDA12
on: workflow_dispatch
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
KCPP_CUDA: 12.1.0
jobs:
linux:
runs-on: ubuntu-20.04
steps:
- name: Clone
id: checkout
uses: actions/checkout@v3
with:
ref: concedo_experimental
- name: Dependencies
id: depends
run: |
sudo apt-get update
sudo apt-get install git curl bzip2
- name: Build
id: make_build
run: |
./koboldcpp.sh dist
- name: Save artifact
uses: actions/upload-artifact@v3
with:
name: kcpp_linux_binary
path: dist/
@@ -0,0 +1,34 @@
name: Koboldcpp Builder Windows CUDA12
on: workflow_dispatch
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
windows:
runs-on: windows-2019
steps:
- name: Clone
id: checkout
uses: actions/checkout@v3
with:
ref: concedo_experimental
- uses: Jimver/cuda-toolkit@v0.2.11
id: cuda-toolkit
with:
cuda: '12.1.0'
- name: Build
id: cmake_build
run: |
mkdir build
cd build
cmake .. -DLLAMA_CUBLAS=ON -DCMAKE_SYSTEM_VERSION="10.0.19041.0"
cmake --build . --config Release -j ${env:NUMBER_OF_PROCESSORS}
- name: Save artifact
uses: actions/upload-artifact@v3
with:
name: kcpp_windows_cuda_binary
path: build/bin/Release/