2024-01-05 22:16:33 +00:00
|
|
|
---
|
|
|
|
name: 'build container images tests'
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ci-${{ github.head_ref || github.ref }}-${{ github.repository }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
extras-image-build:
|
|
|
|
uses: ./.github/workflows/image_build.yml
|
|
|
|
with:
|
|
|
|
tag-latest: ${{ matrix.tag-latest }}
|
|
|
|
tag-suffix: ${{ matrix.tag-suffix }}
|
|
|
|
ffmpeg: ${{ matrix.ffmpeg }}
|
|
|
|
image-type: ${{ matrix.image-type }}
|
|
|
|
build-type: ${{ matrix.build-type }}
|
|
|
|
cuda-major-version: ${{ matrix.cuda-major-version }}
|
|
|
|
cuda-minor-version: ${{ matrix.cuda-minor-version }}
|
|
|
|
platforms: ${{ matrix.platforms }}
|
|
|
|
runs-on: ${{ matrix.runs-on }}
|
2024-02-08 19:12:51 +00:00
|
|
|
base-image: ${{ matrix.base-image }}
|
2024-04-18 20:19:36 +00:00
|
|
|
grpc-base-image: ${{ matrix.grpc-base-image }}
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: ${{ matrix.makeflags }}
|
2024-01-05 22:16:33 +00:00
|
|
|
secrets:
|
|
|
|
dockerUsername: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
dockerPassword: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
|
|
quayUsername: ${{ secrets.LOCALAI_REGISTRY_USERNAME }}
|
|
|
|
quayPassword: ${{ secrets.LOCALAI_REGISTRY_PASSWORD }}
|
|
|
|
strategy:
|
|
|
|
# Pushing with all jobs in parallel
|
|
|
|
# eats the bandwidth of all the nodes
|
2024-06-22 21:24:46 +00:00
|
|
|
max-parallel: ${{ github.event_name != 'pull_request' && 4 || 8 }}
|
2024-01-05 22:16:33 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- build-type: ''
|
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
|
|
|
tag-suffix: '-ffmpeg'
|
|
|
|
ffmpeg: 'true'
|
|
|
|
image-type: 'extras'
|
|
|
|
runs-on: 'arc-runner-set'
|
2024-02-08 19:12:51 +00:00
|
|
|
base-image: "ubuntu:22.04"
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=3 --output-sync=target"
|
2024-01-05 22:16:33 +00:00
|
|
|
- build-type: 'cublas'
|
|
|
|
cuda-major-version: "12"
|
2024-06-19 15:50:49 +00:00
|
|
|
cuda-minor-version: "5"
|
2024-01-05 22:16:33 +00:00
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
|
|
|
tag-suffix: '-cublas-cuda12-ffmpeg'
|
|
|
|
ffmpeg: 'true'
|
|
|
|
image-type: 'extras'
|
|
|
|
runs-on: 'arc-runner-set'
|
2024-02-08 19:12:51 +00:00
|
|
|
base-image: "ubuntu:22.04"
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=3 --output-sync=target"
|
2024-02-16 14:08:50 +00:00
|
|
|
- build-type: 'hipblas'
|
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
|
|
|
tag-suffix: '-hipblas'
|
|
|
|
ffmpeg: 'false'
|
|
|
|
image-type: 'extras'
|
2024-05-03 16:46:49 +00:00
|
|
|
base-image: "rocm/dev-ubuntu-22.04:6.1"
|
2024-04-18 20:19:36 +00:00
|
|
|
grpc-base-image: "ubuntu:22.04"
|
2024-02-16 14:08:50 +00:00
|
|
|
runs-on: 'arc-runner-set'
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=3 --output-sync=target"
|
2024-03-07 13:37:45 +00:00
|
|
|
- build-type: 'sycl_f16'
|
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
2024-05-22 21:35:39 +00:00
|
|
|
base-image: "quay.io/go-skynet/intel-oneapi-base:latest"
|
2024-04-18 20:19:36 +00:00
|
|
|
grpc-base-image: "ubuntu:22.04"
|
2024-03-07 13:37:45 +00:00
|
|
|
tag-suffix: 'sycl-f16-ffmpeg'
|
|
|
|
ffmpeg: 'true'
|
|
|
|
image-type: 'extras'
|
|
|
|
runs-on: 'arc-runner-set'
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=3 --output-sync=target"
|
2024-01-05 22:16:33 +00:00
|
|
|
core-image-build:
|
|
|
|
uses: ./.github/workflows/image_build.yml
|
|
|
|
with:
|
|
|
|
tag-latest: ${{ matrix.tag-latest }}
|
|
|
|
tag-suffix: ${{ matrix.tag-suffix }}
|
|
|
|
ffmpeg: ${{ matrix.ffmpeg }}
|
|
|
|
image-type: ${{ matrix.image-type }}
|
|
|
|
build-type: ${{ matrix.build-type }}
|
|
|
|
cuda-major-version: ${{ matrix.cuda-major-version }}
|
|
|
|
cuda-minor-version: ${{ matrix.cuda-minor-version }}
|
|
|
|
platforms: ${{ matrix.platforms }}
|
|
|
|
runs-on: ${{ matrix.runs-on }}
|
2024-02-08 19:12:51 +00:00
|
|
|
base-image: ${{ matrix.base-image }}
|
2024-04-18 20:19:36 +00:00
|
|
|
grpc-base-image: ${{ matrix.grpc-base-image }}
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: ${{ matrix.makeflags }}
|
2024-01-05 22:16:33 +00:00
|
|
|
secrets:
|
|
|
|
dockerUsername: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
dockerPassword: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
|
|
quayUsername: ${{ secrets.LOCALAI_REGISTRY_USERNAME }}
|
|
|
|
quayPassword: ${{ secrets.LOCALAI_REGISTRY_PASSWORD }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- build-type: ''
|
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
|
|
|
tag-suffix: '-ffmpeg-core'
|
|
|
|
ffmpeg: 'true'
|
|
|
|
image-type: 'core'
|
|
|
|
runs-on: 'ubuntu-latest'
|
2024-02-08 19:12:51 +00:00
|
|
|
base-image: "ubuntu:22.04"
|
2024-04-18 20:19:36 +00:00
|
|
|
makeflags: "--jobs=4 --output-sync=target"
|
2024-02-01 18:21:52 +00:00
|
|
|
- build-type: 'sycl_f16'
|
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
2024-05-22 21:35:39 +00:00
|
|
|
base-image: "quay.io/go-skynet/intel-oneapi-base:latest"
|
2024-04-18 20:19:36 +00:00
|
|
|
grpc-base-image: "ubuntu:22.04"
|
2024-02-01 18:21:52 +00:00
|
|
|
tag-suffix: 'sycl-f16-ffmpeg-core'
|
|
|
|
ffmpeg: 'true'
|
|
|
|
image-type: 'core'
|
|
|
|
runs-on: 'arc-runner-set'
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=3 --output-sync=target"
|
2024-01-05 22:16:33 +00:00
|
|
|
- build-type: 'cublas'
|
|
|
|
cuda-major-version: "12"
|
2024-06-19 15:50:49 +00:00
|
|
|
cuda-minor-version: "5"
|
2024-01-05 22:16:33 +00:00
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
|
|
|
tag-suffix: '-cublas-cuda12-ffmpeg-core'
|
|
|
|
ffmpeg: 'true'
|
|
|
|
image-type: 'core'
|
|
|
|
runs-on: 'ubuntu-latest'
|
2024-03-29 21:32:40 +00:00
|
|
|
base-image: "ubuntu:22.04"
|
2024-06-19 15:50:49 +00:00
|
|
|
makeflags: "--jobs=4 --output-sync=target"
|
2024-06-24 18:04:58 +00:00
|
|
|
- build-type: 'vulkan'
|
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
|
|
|
tag-suffix: '-vulkan-ffmpeg-core'
|
|
|
|
ffmpeg: 'true'
|
|
|
|
image-type: 'core'
|
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
base-image: "ubuntu:22.04"
|
|
|
|
makeflags: "--jobs=4 --output-sync=target"
|