add flag to remvoe RPC PR (for testing)
This commit is contained in:
@@ -9,10 +9,16 @@ on:
|
|||||||
Use "all" to build everything.
|
Use "all" to build everything.
|
||||||
required: false
|
required: false
|
||||||
default: all
|
default: all
|
||||||
|
apply_llama_pr_15405:
|
||||||
|
description: >
|
||||||
|
Set to 0 to skip applying PR 15405 during the build (default applies it).
|
||||||
|
required: false
|
||||||
|
default: ""
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKERHUB_REPO: docker.io/kyuz0/amd-strix-halo-toolboxes
|
DOCKERHUB_REPO: docker.io/kyuz0/amd-strix-halo-toolboxes
|
||||||
LOCAL_PREFIX: llama
|
LOCAL_PREFIX: llama
|
||||||
|
APPLY_LLAMA_PR_15405: ${{ github.event.inputs.apply_llama_pr_15405 }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# 1) Prepare a clean JSON array for the matrix
|
# 1) Prepare a clean JSON array for the matrix
|
||||||
@@ -78,14 +84,26 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
B="${{ matrix.backend }}"
|
B="${{ matrix.backend }}"
|
||||||
|
APPLY_INPUT="${APPLY_LLAMA_PR_15405:-}"
|
||||||
|
BUILD_ARGS=()
|
||||||
|
NAME_SUFFIX=""
|
||||||
|
|
||||||
|
if [[ -n "${APPLY_INPUT}" ]]; then
|
||||||
|
BUILD_ARGS+=(--build-arg "APPLY_LLAMA_PR_15405=${APPLY_INPUT}")
|
||||||
|
if [[ "${APPLY_INPUT}" == "0" ]]; then
|
||||||
|
NAME_SUFFIX="-no-pr15405"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
DF="Dockerfile.$B"
|
DF="Dockerfile.$B"
|
||||||
LI="${LOCAL_PREFIX}-$B"
|
NAME="${B}${NAME_SUFFIX}"
|
||||||
TAG="${B}_${BUILD_TS}"
|
LI="${LOCAL_PREFIX}-${NAME}"
|
||||||
|
TAG="${NAME}_${BUILD_TS}"
|
||||||
IMM="${DOCKERHUB_REPO}:${TAG}"
|
IMM="${DOCKERHUB_REPO}:${TAG}"
|
||||||
CHN="${DOCKERHUB_REPO}:${B}"
|
CHN="${DOCKERHUB_REPO}:${NAME}"
|
||||||
|
|
||||||
echo "→ Building ${DF}"
|
echo "→ Building ${DF}"
|
||||||
docker build --no-cache -t "${LI}" -f "${DF}" .
|
docker build --no-cache "${BUILD_ARGS[@]}" -t "${LI}" -f "${DF}" .
|
||||||
|
|
||||||
echo "→ Tag & push immutable → ${IMM}"
|
echo "→ Tag & push immutable → ${IMM}"
|
||||||
docker tag "${LI}" "${IMM}"
|
docker tag "${LI}" "${IMM}"
|
||||||
|
|||||||
Reference in New Issue
Block a user