mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
fix: default frontend preview variant to cpu (#9718)
Frontend previews don't need GPU resources. Default to cpu variant and only use gpu when the `preview-gpu` label is explicitly added. The plain `preview` label now deploys a cpu-only ephemeral env. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9718-fix-default-frontend-preview-variant-to-cpu-31f6d73d3650811f878cd5dd5ad3881c) by [Unito](https://www.unito.io)
This commit is contained in:
11
.github/workflows/cloud-dispatch-build.yaml
vendored
11
.github/workflows/cloud-dispatch-build.yaml
vendored
@@ -55,14 +55,9 @@ jobs:
|
|||||||
REF="${PR_HEAD_SHA}"
|
REF="${PR_HEAD_SHA}"
|
||||||
BRANCH="${PR_HEAD_REF}"
|
BRANCH="${PR_HEAD_REF}"
|
||||||
|
|
||||||
# Derive variant from labels
|
# Derive variant from all PR labels (default to cpu for frontend-only previews)
|
||||||
VARIANT="gpu"
|
VARIANT="cpu"
|
||||||
if [ "${ACTION}" = "labeled" ]; then
|
echo "${PR_LABELS}" | grep -q '"preview-gpu"' && VARIANT="gpu"
|
||||||
[ "${LABEL_NAME}" = "preview-cpu" ] && VARIANT="cpu"
|
|
||||||
else
|
|
||||||
# synchronize — check existing labels on the PR
|
|
||||||
echo "${PR_LABELS}" | grep -q '"preview-cpu"' && VARIANT="cpu"
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
REF="${GITHUB_SHA}"
|
REF="${GITHUB_SHA}"
|
||||||
BRANCH="${GITHUB_REF_NAME}"
|
BRANCH="${GITHUB_REF_NAME}"
|
||||||
|
|||||||
Reference in New Issue
Block a user