Parameterize build project
This commit is contained in:
@@ -1,8 +1,14 @@
|
|||||||
# File: .github/workflows/build-and-push.yml
|
|
||||||
name: Build & Push AMD Strix Halo Toolboxes
|
name: Build & Push AMD Strix Halo Toolboxes
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
backends:
|
||||||
|
description: |
|
||||||
|
Comma-separated list of backends to build (e.g. "rocm-7beta,rocm-7rc").
|
||||||
|
Use "all" to build everything.
|
||||||
|
required: false
|
||||||
|
default: all
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKERHUB_REPO: docker.io/kyuz0/amd-strix-halo-toolboxes
|
DOCKERHUB_REPO: docker.io/kyuz0/amd-strix-halo-toolboxes
|
||||||
@@ -14,12 +20,16 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
backend:
|
# if inputs.backends == "all", expand to the full list
|
||||||
- rocm-6.4.2
|
# otherwise split the comma list into an array
|
||||||
- rocm-7beta
|
backend: ${{ fromJSON(
|
||||||
- rocm-7rc
|
github.event.inputs.backends == 'all'
|
||||||
- vulkan-amdvlk
|
? '["rocm-6.4.2","rocm-7beta","rocm-7rc","vulkan-amdvlk","vulkan-radv"]'
|
||||||
- vulkan-radv
|
: format(
|
||||||
|
'[\"{}\"]',
|
||||||
|
replace(github.event.inputs.backends, ',', '\",\"')
|
||||||
|
)
|
||||||
|
) }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
@@ -35,7 +45,6 @@ jobs:
|
|||||||
run: echo "BUILD_TS=$(date +%Y%m%dT%H%M%S)" >> $GITHUB_ENV
|
run: echo "BUILD_TS=$(date +%Y%m%dT%H%M%S)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build & push ${{ matrix.backend }}
|
- name: Build & push ${{ matrix.backend }}
|
||||||
# switch into toolboxes/ so that Dockerfile.* and gguf-vram-estimator.py are in context
|
|
||||||
working-directory: toolboxes
|
working-directory: toolboxes
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|||||||
Reference in New Issue
Block a user