Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .devops/vulkan.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
ARG UBUNTU_VERSION=26.04
ARG UBUNTU_VERSION=24.04

FROM ubuntu:$UBUNTU_VERSION AS build

# Install build tools
RUN apt update && apt install -y git build-essential cmake wget xz-utils

# Install SSL and Vulkan SDK dependencies
RUN apt install -y libssl-dev curl \
libxcb-xinput0 libxcb-xinerama0 libxcb-cursor-dev libvulkan-dev glslc
# Install cURL and Vulkan SDK dependencies.
RUN apt install -y libcurl4-openssl-dev curl \
libxcb-xinput0 libxcb-xinerama0 libxcb-cursor-dev libvulkan-dev

# glslc package naming differs across Ubuntu releases/runners.
RUN apt install -y glslc \
|| apt install -y shaderc \
|| apt install -y shaderc-tools

RUN command -v glslc

# Build it
WORKDIR /app
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
COMMIT_SHA: ${{ github.sha }}
strategy:
fail-fast: false
max-parallel: 2
matrix:
config:
# Multi-stage build
Expand Down
25 changes: 21 additions & 4 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 4,
"version": 3,
"configurePresets": [
{
"name": "base",
Expand Down Expand Up @@ -64,6 +64,15 @@
},
{ "name": "x64-linux-gcc-debug", "inherits": [ "base", "x64-linux-gcc", "debug" ] },
{ "name": "x64-linux-gcc-release", "inherits": [ "base", "x64-linux-gcc", "release" ] },
{
"name": "x64-linux-gcc-lowmem-release",
"inherits": [ "base", "x64-linux-gcc", "release" ],
"cacheVariables": {
"LLAMA_BUILD_SERVER": "OFF",
"LLAMA_BUILD_TESTS": "OFF",
"LLAMA_BUILD_EXAMPLES": "OFF"
}
},
{ "name": "x64-linux-gcc-reldbg", "inherits": [ "base", "x64-linux-gcc", "reldbg" ] },
{ "name": "x64-linux-gcc+static-release", "inherits": [ "base", "x64-linux-gcc", "release", "static" ] },

Expand All @@ -89,7 +98,15 @@
{ "name": "x64-windows-sycl-release", "inherits": [ "sycl-base", "release" ] },
{ "name": "x64-windows-sycl-release-f16", "inherits": [ "sycl-base", "release", "sycl_f16" ] },

{ "name": "x64-windows-vulkan-debug", "inherits": [ "base", "vulkan", "debug" ] },
{ "name": "x64-windows-vulkan-release", "inherits": [ "base", "vulkan", "release" ] }
]
{ "name": "x64-windows-vulkan-debug", "inherits": [ "base", "vulkan", "debug" ] },
{ "name": "x64-windows-vulkan-release", "inherits": [ "base", "vulkan", "release" ] }
],
"buildPresets": [
{
"name": "x64-linux-gcc-lowmem-release-cli",
"configurePreset": "x64-linux-gcc-lowmem-release",
"targets": [ "llama-cli" ],
"jobs": 1
}
]
}