File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,58 @@ jobs:
240240 path : llama-${{ steps.tag.outputs.name }}-bin-ubuntu-vulkan-x64.zip
241241 name : llama-bin-ubuntu-vulkan-x64.zip
242242
243+ ubuntu-22-cuda :
244+ runs-on : ubuntu-22.04
245+
246+ steps :
247+ - name : Clone
248+ id : checkout
249+ uses : actions/checkout@v4
250+ with :
251+ fetch-depth : 0
252+
253+ - name : ccache
254+ uses :
hendrikmuhs/[email protected] 255+ with :
256+ key : ubuntu-22-cmake-cuda
257+ evict-old-files : 1d
258+
259+ - name : Install CUDA Toolkit
260+ 261+ with :
262+ cuda : ' 12.1.1'
263+
264+ - name : Build
265+ id : cmake_build
266+ shell : cmd
267+ run : |
268+ cmake -B build \
269+ -DCMAKE_INSTALL_RPATH='$ORIGIN' \
270+ -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
271+ -DGGML_BACKEND_DL=ON \
272+ -DGGML_NATIVE=OFF \
273+ -DGGML_CPU_ALL_VARIANTS=ON \
274+ -DGGML_CUDA=ON \
275+ ${{ env.CMAKE_ARGS }}
276+ cmake --build build --config Release -j $(nproc)
277+
278+
279+ - name : Determine tag name
280+ id : tag
281+ uses : ./.github/actions/get-tag-name
282+
283+ - name : Pack artifacts
284+ id : pack_artifacts
285+ run : |
286+ cp LICENSE ./build/bin/
287+ zip -r llama-${{ steps.tag.outputs.name }}-bin-ubuntu-cuda-x64.zip ./build/bin/*
288+
289+ - name : Upload artifacts
290+ uses : actions/upload-artifact@v4
291+ with :
292+ path : llama-${{ steps.tag.outputs.name }}-bin-ubuntu-cuda-x64.zip
293+ name : llama-bin-ubuntu-cuda-x64.zip
294+
243295 windows-cpu :
244296 runs-on : windows-2025
245297
You can’t perform that action at this time.
0 commit comments