stable-diffusion.cpp/.github
Claude df821e6b5c
ci: build portable packages with GPU backends (Windows CUDA 12 and Vulkan, Linux Vulkan)
The portable workflow only built CPU packages, so a downloaded Windows zip
could never use the GPU ("sd-server detects only the CPU"). Mirror the
configuration already proven by build.yml and add the GPU modules:

- windows-x86_64: CPU + Vulkan (NVIDIA, AMD, Intel)
- windows-x86_64-cuda12: CPU + CUDA 12 with cudart/cublas/cublasLt bundled,
  so only the NVIDIA driver is needed on the target machine
- linux-x86_64: CPU + Vulkan, with an $ORIGIN rpath so the unpacked zip finds
  its shared libraries
- darwin-arm64 unchanged (Metal)

Windows now builds with cl.exe, /bigobj and the shared stable-diffusion
library like build.yml; the server frontend is built as in the main CI.

A manual run can select the packages and the CUDA architectures (a single
architecture shortens the CUDA build a lot). A smoke test runs
"sd-cli --list-devices" on every package, and the release is attached by one
job after all packages succeeded instead of by racing matrix jobs.

package_portable.sh takes PORTABLE_VARIANT (zip name and LEGGIMI wording) and
PORTABLE_REQUIRE_BACKENDS, and refuses to create a GPU package whose backend
module (or, on Windows, CUDA runtime DLLs) is missing.

Claude-Session: https://claude.ai/code/session_01EhZzDBkuuMp1jBf4WtEySC
2026-10-11 05:40:43 +02:00
..
ISSUE_TEMPLATE feat: add linear and attention scale overrides (#1964) 2026-09-12 01:41:28 +08:00
workflows ci: build portable packages with GPU backends (Windows CUDA 12 and Vulkan, Linux Vulkan) 2026-10-11 05:40:43 +02:00
pull_request_template.md docs: add .github/pull_request_template.md 2026-05-15 01:16:21 +08:00