2023-03-19 22:50:31 +00:00
|
|
|
---
|
|
|
|
name: 'build container images'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
2023-05-19 06:31:11 +00:00
|
|
|
concurrency:
|
|
|
|
group: ci-${{ github.head_ref || github.ref }}-${{ github.repository }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-03-19 22:50:31 +00:00
|
|
|
jobs:
|
2024-02-29 10:40:08 +00:00
|
|
|
self-hosted-jobs:
|
2023-11-30 18:24:37 +00:00
|
|
|
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-03-21 21:09:04 +00:00
|
|
|
aio: ${{ matrix.aio }}
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: ${{ matrix.makeflags }}
|
2023-11-30 18:24:37 +00:00
|
|
|
secrets:
|
2024-01-04 07:32:29 +00:00
|
|
|
dockerUsername: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
dockerPassword: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
|
|
quayUsername: ${{ secrets.LOCALAI_REGISTRY_USERNAME }}
|
|
|
|
quayPassword: ${{ secrets.LOCALAI_REGISTRY_PASSWORD }}
|
2023-05-31 17:51:02 +00:00
|
|
|
strategy:
|
2023-11-30 16:45:20 +00:00
|
|
|
# Pushing with all jobs in parallel
|
|
|
|
# eats the bandwidth of all the nodes
|
2023-11-30 18:24:37 +00:00
|
|
|
max-parallel: ${{ github.event_name != 'pull_request' && 2 || 4 }}
|
2023-05-31 17:51:02 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2024-02-29 10:40:08 +00:00
|
|
|
# Extra images
|
2023-05-31 17:51:02 +00:00
|
|
|
- build-type: ''
|
2023-10-16 19:46:29 +00:00
|
|
|
#platforms: 'linux/amd64,linux/arm64'
|
|
|
|
platforms: 'linux/amd64'
|
2023-05-31 17:51:02 +00:00
|
|
|
tag-latest: 'auto'
|
|
|
|
tag-suffix: ''
|
2023-06-04 12:00:21 +00:00
|
|
|
ffmpeg: ''
|
2023-11-20 22:01:31 +00:00
|
|
|
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"
|
2023-10-29 21:04:43 +00:00
|
|
|
- build-type: ''
|
|
|
|
platforms: 'linux/amd64'
|
2024-03-23 15:08:32 +00:00
|
|
|
tag-latest: 'auto'
|
2023-10-29 21:04:43 +00:00
|
|
|
tag-suffix: '-ffmpeg'
|
|
|
|
ffmpeg: 'true'
|
2023-11-20 22:01:31 +00:00
|
|
|
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"
|
2023-05-31 17:51:02 +00:00
|
|
|
- build-type: 'cublas'
|
2023-11-30 18:24:37 +00:00
|
|
|
cuda-major-version: "11"
|
|
|
|
cuda-minor-version: "7"
|
2023-05-31 17:51:02 +00:00
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
|
|
|
tag-suffix: '-cublas-cuda11'
|
2023-06-04 12:00:21 +00:00
|
|
|
ffmpeg: ''
|
2023-11-20 22:01:31 +00:00
|
|
|
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"
|
2023-05-31 17:51:02 +00:00
|
|
|
- build-type: 'cublas'
|
2023-11-30 18:24:37 +00:00
|
|
|
cuda-major-version: "12"
|
|
|
|
cuda-minor-version: "1"
|
2023-05-31 17:51:02 +00:00
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
|
|
|
tag-suffix: '-cublas-cuda12'
|
2023-06-04 12:00:21 +00:00
|
|
|
ffmpeg: ''
|
2023-11-20 22:01:31 +00:00
|
|
|
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"
|
2023-06-04 12:00:21 +00:00
|
|
|
- build-type: 'cublas'
|
2023-11-30 18:24:37 +00:00
|
|
|
cuda-major-version: "11"
|
|
|
|
cuda-minor-version: "7"
|
2023-06-04 12:00:21 +00:00
|
|
|
platforms: 'linux/amd64'
|
2024-03-23 15:08:32 +00:00
|
|
|
tag-latest: 'auto'
|
2023-06-04 12:00:21 +00:00
|
|
|
tag-suffix: '-cublas-cuda11-ffmpeg'
|
|
|
|
ffmpeg: 'true'
|
2023-11-20 22:01:31 +00:00
|
|
|
image-type: 'extras'
|
|
|
|
runs-on: 'arc-runner-set'
|
2024-02-08 19:12:51 +00:00
|
|
|
base-image: "ubuntu:22.04"
|
2024-03-21 21:09:04 +00:00
|
|
|
aio: "-aio-gpu-nvidia-cuda-11"
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=3 --output-sync=target"
|
2023-06-04 12:00:21 +00:00
|
|
|
- build-type: 'cublas'
|
2023-11-30 18:24:37 +00:00
|
|
|
cuda-major-version: "12"
|
|
|
|
cuda-minor-version: "1"
|
2023-06-04 12:00:21 +00:00
|
|
|
platforms: 'linux/amd64'
|
2024-03-23 15:08:32 +00:00
|
|
|
tag-latest: 'auto'
|
2023-06-04 12:00:21 +00:00
|
|
|
tag-suffix: '-cublas-cuda12-ffmpeg'
|
|
|
|
ffmpeg: 'true'
|
2023-11-20 22:01:31 +00:00
|
|
|
image-type: 'extras'
|
|
|
|
runs-on: 'arc-runner-set'
|
2024-02-08 19:12:51 +00:00
|
|
|
base-image: "ubuntu:22.04"
|
2024-03-21 21:09:04 +00:00
|
|
|
aio: "-aio-gpu-nvidia-cuda-12"
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=3 --output-sync=target"
|
2023-11-20 22:01:31 +00:00
|
|
|
- build-type: ''
|
|
|
|
#platforms: 'linux/amd64,linux/arm64'
|
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'auto'
|
|
|
|
tag-suffix: ''
|
|
|
|
ffmpeg: ''
|
|
|
|
image-type: 'extras'
|
2024-02-08 19:12:51 +00:00
|
|
|
base-image: "ubuntu:22.04"
|
2023-11-20 22:01:31 +00:00
|
|
|
runs-on: 'arc-runner-set'
|
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'
|
2024-03-23 15:08:32 +00:00
|
|
|
tag-latest: 'auto'
|
2024-02-16 14:08:50 +00:00
|
|
|
tag-suffix: '-hipblas-ffmpeg'
|
|
|
|
ffmpeg: 'true'
|
|
|
|
image-type: 'extras'
|
2024-03-23 14:54:14 +00:00
|
|
|
aio: "-aio-gpu-hipblas"
|
2024-02-16 14:08:50 +00:00
|
|
|
base-image: "rocm/dev-ubuntu-22.04:6.0-complete"
|
|
|
|
runs-on: 'arc-runner-set'
|
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'
|
|
|
|
base-image: "rocm/dev-ubuntu-22.04:6.0-complete"
|
|
|
|
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'
|
2024-03-23 15:08:32 +00:00
|
|
|
tag-latest: 'auto'
|
2024-03-07 13:37:45 +00:00
|
|
|
base-image: "intel/oneapi-basekit:2024.0.1-devel-ubuntu22.04"
|
|
|
|
tag-suffix: '-sycl-f16-ffmpeg'
|
|
|
|
ffmpeg: 'true'
|
|
|
|
image-type: 'extras'
|
|
|
|
runs-on: 'arc-runner-set'
|
2024-03-23 14:54:14 +00:00
|
|
|
aio: "-aio-gpu-intel-f16"
|
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_f32'
|
|
|
|
platforms: 'linux/amd64'
|
2024-03-23 15:08:32 +00:00
|
|
|
tag-latest: 'auto'
|
2024-03-07 13:37:45 +00:00
|
|
|
base-image: "intel/oneapi-basekit:2024.0.1-devel-ubuntu22.04"
|
|
|
|
tag-suffix: '-sycl-f32-ffmpeg'
|
|
|
|
ffmpeg: 'true'
|
|
|
|
image-type: 'extras'
|
|
|
|
runs-on: 'arc-runner-set'
|
2024-03-23 14:54:14 +00:00
|
|
|
aio: "-aio-gpu-intel-f32"
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=3 --output-sync=target"
|
2024-02-29 10:40:08 +00:00
|
|
|
# Core images
|
2024-02-01 18:21:52 +00:00
|
|
|
- build-type: 'sycl_f16'
|
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
2024-02-08 19:12:51 +00:00
|
|
|
base-image: "intel/oneapi-basekit:2024.0.1-devel-ubuntu22.04"
|
2024-02-06 14:52:21 +00:00
|
|
|
tag-suffix: '-sycl-f16-core'
|
2024-02-01 18:21:52 +00:00
|
|
|
ffmpeg: 'false'
|
|
|
|
image-type: 'core'
|
|
|
|
runs-on: 'arc-runner-set'
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=3 --output-sync=target"
|
2024-02-01 18:21:52 +00:00
|
|
|
- build-type: 'sycl_f32'
|
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
2024-02-08 19:12:51 +00:00
|
|
|
base-image: "intel/oneapi-basekit:2024.0.1-devel-ubuntu22.04"
|
2024-02-06 14:52:21 +00:00
|
|
|
tag-suffix: '-sycl-f32-core'
|
2024-02-01 18:21:52 +00:00
|
|
|
ffmpeg: 'false'
|
|
|
|
image-type: 'core'
|
|
|
|
runs-on: 'arc-runner-set'
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=3 --output-sync=target"
|
2024-02-01 18:21:52 +00:00
|
|
|
- build-type: 'sycl_f16'
|
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
2024-02-08 19:12:51 +00:00
|
|
|
base-image: "intel/oneapi-basekit:2024.0.1-devel-ubuntu22.04"
|
2024-02-06 14:52:21 +00:00
|
|
|
tag-suffix: '-sycl-f16-ffmpeg-core'
|
2024-02-01 18:21:52 +00:00
|
|
|
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-02-01 18:21:52 +00:00
|
|
|
- build-type: 'sycl_f32'
|
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
2024-02-08 19:12:51 +00:00
|
|
|
base-image: "intel/oneapi-basekit:2024.0.1-devel-ubuntu22.04"
|
2024-02-06 14:52:21 +00:00
|
|
|
tag-suffix: '-sycl-f32-ffmpeg-core'
|
2024-02-01 18:21:52 +00:00
|
|
|
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-02-29 10:40:08 +00:00
|
|
|
- build-type: 'hipblas'
|
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
|
|
|
tag-suffix: '-hipblas-ffmpeg-core'
|
|
|
|
ffmpeg: 'true'
|
|
|
|
image-type: 'core'
|
|
|
|
base-image: "rocm/dev-ubuntu-22.04:6.0-complete"
|
|
|
|
runs-on: 'arc-runner-set'
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=3 --output-sync=target"
|
2024-02-29 10:40:08 +00:00
|
|
|
- build-type: 'hipblas'
|
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
|
|
|
tag-suffix: '-hipblas-core'
|
|
|
|
ffmpeg: 'false'
|
|
|
|
image-type: 'core'
|
|
|
|
base-image: "rocm/dev-ubuntu-22.04:6.0-complete"
|
|
|
|
runs-on: 'arc-runner-set'
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=3 --output-sync=target"
|
2024-02-29 10:40:08 +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-03-21 21:09:04 +00:00
|
|
|
aio: ${{ matrix.aio }}
|
2024-02-29 10:40:08 +00:00
|
|
|
base-image: ${{ matrix.base-image }}
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: ${{ matrix.makeflags }}
|
2024-02-29 10:40:08 +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'
|
2024-03-23 15:08:32 +00:00
|
|
|
tag-latest: 'auto'
|
2024-02-29 10:40:08 +00:00
|
|
|
tag-suffix: '-ffmpeg-core'
|
|
|
|
ffmpeg: 'true'
|
|
|
|
image-type: 'core'
|
|
|
|
base-image: "ubuntu:22.04"
|
|
|
|
runs-on: 'ubuntu-latest'
|
2024-03-21 21:09:04 +00:00
|
|
|
aio: "-aio-cpu"
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=5 --output-sync=target"
|
2023-11-20 22:01:31 +00:00
|
|
|
- build-type: 'cublas'
|
2023-11-30 18:24:37 +00:00
|
|
|
cuda-major-version: "11"
|
|
|
|
cuda-minor-version: "7"
|
2023-11-20 22:01:31 +00:00
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
|
|
|
tag-suffix: '-cublas-cuda11-core'
|
|
|
|
ffmpeg: ''
|
|
|
|
image-type: 'core'
|
2024-02-08 19:12:51 +00:00
|
|
|
base-image: "ubuntu:22.04"
|
2023-11-20 22:01:31 +00:00
|
|
|
runs-on: 'ubuntu-latest'
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=5 --output-sync=target"
|
2023-11-20 22:01:31 +00:00
|
|
|
- build-type: 'cublas'
|
2023-11-30 18:24:37 +00:00
|
|
|
cuda-major-version: "12"
|
|
|
|
cuda-minor-version: "1"
|
2023-11-20 22:01:31 +00:00
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
|
|
|
tag-suffix: '-cublas-cuda12-core'
|
|
|
|
ffmpeg: ''
|
|
|
|
image-type: 'core'
|
2024-02-08 19:12:51 +00:00
|
|
|
base-image: "ubuntu:22.04"
|
2023-11-20 22:01:31 +00:00
|
|
|
runs-on: 'ubuntu-latest'
|
2024-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=5 --output-sync=target"
|
2023-11-20 22:01:31 +00:00
|
|
|
- build-type: 'cublas'
|
2023-11-30 18:24:37 +00:00
|
|
|
cuda-major-version: "11"
|
|
|
|
cuda-minor-version: "7"
|
2023-11-20 22:01:31 +00:00
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
|
|
|
tag-suffix: '-cublas-cuda11-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-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=5 --output-sync=target"
|
2023-11-20 22:01:31 +00:00
|
|
|
- build-type: 'cublas'
|
2023-11-30 18:24:37 +00:00
|
|
|
cuda-major-version: "12"
|
|
|
|
cuda-minor-version: "1"
|
2023-11-20 22:01:31 +00:00
|
|
|
platforms: 'linux/amd64'
|
|
|
|
tag-latest: 'false'
|
|
|
|
tag-suffix: '-cublas-cuda12-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-03-29 21:32:40 +00:00
|
|
|
makeflags: "--jobs=5 --output-sync=target"
|