mirror of
https://github.com/ravenscroftj/turbopilot.git
synced 2024-10-01 01:06:01 -04:00
break out vars
This commit is contained in:
parent
e8adff5339
commit
b465eae818
49
.github/workflows/docker-image.yml
vendored
49
.github/workflows/docker-image.yml
vendored
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user