mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00
Split up builds into a matrix
This commit is contained in:
parent
105cc67447
commit
379e858952
2 changed files with 15 additions and 4 deletions
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
@ -35,6 +35,9 @@ jobs:
|
||||||
BUILDKIT_STEP_LOG_MAX_SIZE: 10485760
|
BUILDKIT_STEP_LOG_MAX_SIZE: 10485760
|
||||||
# This environment variable will override the VERSION variable in docker-bake.hcl
|
# This environment variable will override the VERSION variable in docker-bake.hcl
|
||||||
VERSION: ${{ needs.prepare-release.outputs.version_tag }} # Use tag version (vX.Y.Z) for bake
|
VERSION: ${{ needs.prepare-release.outputs.version_tag }} # Use tag version (vX.Y.Z) for bake
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
build_target: ["cpu", "gpu", "rocm"]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -86,7 +89,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "Building and pushing images for version ${{ needs.prepare-release.outputs.version_tag }}"
|
echo "Building and pushing images for version ${{ needs.prepare-release.outputs.version_tag }}"
|
||||||
# The VERSION env var above sets the tag for the bake file targets
|
# The VERSION env var above sets the tag for the bake file targets
|
||||||
docker buildx bake --push
|
docker buildx bake ${{} matrix.build_target }} --push
|
||||||
|
|
||||||
create-release:
|
create-release:
|
||||||
needs: [prepare-release, build-images]
|
needs: [prepare-release, build-images]
|
||||||
|
|
|
@ -76,9 +76,17 @@ target "rocm" {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
# Default group to build both CPU and GPU versions
|
# Build groups for parallel builds
|
||||||
group "default" {
|
group "cpu" {
|
||||||
targets = ["cpu", "gpu", "rocm"]
|
targets = ["cpu"]
|
||||||
|
}
|
||||||
|
|
||||||
|
group "gpu" {
|
||||||
|
targets = ["gpu"]
|
||||||
|
}
|
||||||
|
|
||||||
|
group "rocm" {
|
||||||
|
targets = ["rocm"]
|
||||||
}
|
}
|
||||||
|
|
||||||
# Development targets for faster local builds
|
# Development targets for faster local builds
|
||||||
|
|
Loading…
Add table
Reference in a new issue