Add Ubuntu 22 CUDA to release.yml

Adds a job to package a release for ubuntu 22.04 CUDA.
This commit is contained in:
Ahmed Hassan-Albanna 2025-10-25 06:52:55 +03:00 committed by GitHub
parent 5cca2542ac
commit c5bea751b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 59 additions and 1 deletions

View File

@ -242,7 +242,65 @@ jobs:
with:
path: llama-${{ steps.tag.outputs.name }}-bin-ubuntu-vulkan-x64.zip
name: llama-bin-ubuntu-vulkan-x64.zip
ubuntu-22-cuda:
runs-on: ubuntu-22.04
strategy:
matrix:
cuda: ['12.4']
steps:
- name: Clone
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ccache
uses: ggml-org/ccache-action@v1.2.16
with:
key: ubuntu-22-cmake-cuda-${{ matrix.cuda }}
evict-old-files: 1d
- name: Dependencies
id: depends
run: |
wget -q https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb
sudo dpkg -i cuda-keyring_1.0-1_all.deb
sudo apt-get update -y
sudo apt-get install -y cuda-toolkit-${{ matrix.cuda }} build-essential libcurl4-openssl-dev
- name: Build
id: cmake_build
run: |
export PATH=/usr/local/cuda-${{ matrix.cuda }}/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-${{ matrix.cuda }}/lib64:$LD_LIBRARY_PATH
cmake -B build \
-DCMAKE_INSTALL_RPATH='$ORIGIN' \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
-DGGML_BACKEND_DL=ON \
-DGGML_NATIVE=OFF \
-DGGML_CPU_ALL_VARIANTS=ON \
-DGGML_CUDA=ON \
-DCMAKE_CUDA_ARCHITECTURES="60;61;70;75;80;86;89;90" \
${{ env.CMAKE_ARGS }}
cmake --build build --config Release -j $(nproc)
- name: Determine tag name
id: tag
uses: ./.github/actions/get-tag-name
- name: Pack artifacts
id: pack_artifacts
run: |
cp LICENSE ./build/bin/
zip -r llama-${{ steps.tag.outputs.name }}-bin-ubuntu-cuda-${{ matrix.cuda }}-x64.zip ./build/bin/*
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: llama-${{ steps.tag.outputs.name }}-bin-ubuntu-cuda-${{ matrix.cuda }}-x64.zip
name: llama-bin-ubuntu-cuda-${{ matrix.cuda }}-x64.zip
windows-cpu:
runs-on: windows-2025