char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Kevin Pougetggml-virtgpu: Add a GHA build check (#22943)928b486b0

char/aliceai-t5-moe
1.1 KiB50 linesraw
1name: CI (virtgpu)
2
3on:
4  workflow_dispatch: # allows manual triggering
5  push:
6    branches:
7      - master
8    paths: [
9      '.github/workflows/build-virtgpu.yml',
10      '**/CMakeLists.txt',
11      '**/.cmake',
12      '**/*.h',
13      '**/*.hpp',
14      '**/*.c',
15      '**/*.cpp'
16    ]
17
18  pull_request:
19    types: [opened, synchronize, reopened]
20    paths: [
21      '.github/workflows/build-virtgpu.yml',
22      'ggml/src/ggml-virtgpu/**'
23    ]
24
25concurrency:
26  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
27  cancel-in-progress: true
28
29jobs:
30  ubuntu-24-virtgpu:
31    runs-on: ${{ 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
32
33    steps:
34      - name: Clone
35        id: checkout
36        uses: actions/checkout@v6
37
38      - name: Dependencies
39        id: depends
40        run: |
41          sudo apt-get update
42          sudo apt-get install -y build-essential libdrm-dev pkg-config libssl-dev
43
44      - name: Build
45        id: cmake_build
46        run: |
47          cmake -B build \
48            -DGGML_VIRTGPU=ON \
49            -DGGML_VIRTGPU_BACKEND=ON
50          cmake --build build --config Release -j $(nproc)