From ff4c2b18d7c2356d0226d248c39c57fc22e08b2d Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Thu, 21 Dec 2023 19:36:52 +0800 Subject: [PATCH] testing workflow for windows cuda builds (cherry picked from commit e1f013bbf882966a45d59a77f07ed67418acc769) --- ...ase.yaml => kcpp-build-release-linux.yaml} | 0 .../kcpp-build-release-win-cuda.yaml | 36 +++++++++++++++++++ 2 files changed, 36 insertions(+) rename .github/workflows/{kcpp-build-release.yaml => kcpp-build-release-linux.yaml} (100%) create mode 100644 .github/workflows/kcpp-build-release-win-cuda.yaml diff --git a/.github/workflows/kcpp-build-release.yaml b/.github/workflows/kcpp-build-release-linux.yaml similarity index 100% rename from .github/workflows/kcpp-build-release.yaml rename to .github/workflows/kcpp-build-release-linux.yaml diff --git a/.github/workflows/kcpp-build-release-win-cuda.yaml b/.github/workflows/kcpp-build-release-win-cuda.yaml new file mode 100644 index 0000000000000..cc1c623ff602b --- /dev/null +++ b/.github/workflows/kcpp-build-release-win-cuda.yaml @@ -0,0 +1,36 @@ +name: Koboldcpp Builder Windows CUDA + +on: workflow_dispatch +env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + +jobs: + windows: + runs-on: windows-latest + 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: '11.7.1' + method: 'network' + sub-packages: '["nvcc", "cudart", "cublas", "cublas_dev", "thrust", "visual_studio_integration"]' + + - name: Build + id: cmake_build + run: | + mkdir build + cd build + cmake .. -DLLAMA_CUBLAS=ON + 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/