break out vars

This commit is contained in:
James Ravenscroft 2023-08-26 13:28:08 +01:00
parent e8adff5339
commit b465eae818

View File

@ -19,46 +19,47 @@ jobs:
- tag: ""
dockerfile: "./Dockerfile.default"
platforms: "linux/amd64,linux/arm64"
build_args: ""
build_base: "ubuntu:22.04"
runtime_base: "ubuntu:22.04"
- tag: "-openblas"
dockerfile: "./Dockerfile.default"
platforms: "linux/amd64,linux/arm64"
build_args: |
EXTRA_DEPS=libopenblas-dev
CMAKE_ARGS="-DGGML_OPENBLAS=On"
build_base: "ubuntu:22.04"
runtime_base: "ubuntu:22.04"
extra_deps: "libopenblas-dev"
cmake_args: "-DGGML_OPENBLAS=On"
-
tag: "-cuda11-7"
- tag: "-cuda11-7"
dockerfile: "./Dockerfile.default"
platforms: "linux/amd64"
build_args: |
BUILD_BASE="nvidia/cuda:11.7.1-devel-ubuntu22.04"
RUNTIME_BASE="nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu22.04"
CMAKE_ARGS="-DGGML_CUBLAS=ON -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc"
build_base: "nvidia/cuda:11.7.1-devel-ubuntu22.04"
runtime_base: "nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu22.04"
cmake_args: "-DGGML_CUBLAS=ON -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc"
- tag: "-cuda12-0"
dockerfile: "./Dockerfile.default"
platforms: "linux/amd64"
build_args: |
BUILD_BASE="nvidia/cuda:12.0.0-devel-ubuntu20.04"
RUNTIME_BASE="nvidia/cuda:12.0.0-runtime-ubuntu20.04"
CMAKE_ARGS="-DGGML_CUBLAS=ON -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc"
build_base: "nvidia/cuda:12.0.0-devel-ubuntu20.04"
runtime_base: "nvidia/cuda:12.0.0-runtime-ubuntu20.04"
cmake_args: "-DGGML_CUBLAS=ON -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc"
- tag: "-cuda12-2"
dockerfile: "./Dockerfile.default"
platforms: "linux/amd64"
build_args: |
BUILD_BASE="nvidia/cuda:12.2.0-devel-ubuntu20.04"
RUNTIME_BASE="nvidia/cuda:12.2.0-runtime-ubuntu20.04"
CMAKE_ARGS="-DGGML_CUBLAS=ON -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc"
build_base: "nvidia/cuda:12.2.0-devel-ubuntu20.04"
runtime_base: "nvidia/cuda:12.2.0-runtime-ubuntu20.04"
cmake_args: "-DGGML_CUBLAS=ON -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc"
- tag: "-clblast"
dockerfile: "./Dockerfile.default"
platforms: "linux/amd64"
build_args: |
EXTRA_DEPS=libclblast-dev
CMAKE_ARGS=-DGGML_CLBLAST=On
build_base: "ubuntu:22.04"
runtime_base: "ubuntu:22.04"
extra_deps: libclblast-dev
cmake_args: DGGML_CLBLAST=On
steps:
@ -94,7 +95,11 @@ jobs:
tags: ghcr.io/ravenscroftj/turbopilot:nightly${{matrix.config.tag}}-${{ github.sha }}
context: ${{github.workspace}}
platforms: ${{matrix.config.platforms}}
build-args: ${{matrix.config.build_args}}
build-args: |
EXTRA_DEPS=${{matrix.config.extra_deps}}
CMAKE_ARGS=${{matrix.config.cmake_args}}
BUILD_BASE=${{matrix.config.build_base}}
RUNTIME_BASE=${{matrix.config.runtime_base}}
- name: Build and push release (Main Latest Build)