stable-diffusion.cpp/scripts
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
..
build-engine.ps1 test try CPU/GPU 2026-10-08 22:47:40 +02:00
build-engine.sh test try CPU/GPU 2026-10-08 22:47:40 +02:00
build-windows-gpu.ps1 test try CPU/GPU 2026-10-08 22:47:40 +02:00
convert_fp8_scale_to_bf16.py chore: move utility scripts under scripts (#1746) 2026-07-05 18:48:18 +08:00
convert_qwen3_vl.py chore: move utility scripts under scripts (#1746) 2026-07-05 18:48:18 +08:00
convert_sefi.py chore: move utility scripts under scripts (#1746) 2026-07-05 18:48:18 +08:00
convert_yolov8_to_safetensors.py feat: add ADetailer support (#1785) 2026-07-14 23:59:11 +08:00
face_detect.py chore: move utility scripts under scripts (#1746) 2026-07-05 18:48:18 +08:00
format-code.ps1 refactor: split generation pipeline out of stable-diffusion.cpp (#1957) 2026-09-11 00:57:14 +08:00
format-code.sh refactor: split generation pipeline out of stable-diffusion.cpp (#1957) 2026-09-11 00:57:14 +08:00
merge_safetensors.py chore: format code 2026-08-19 23:06:07 +08:00
package_portable.sh ci: build portable packages with GPU backends (Windows CUDA 12 and Vulkan, Linux Vulkan) 2026-10-11 05:40:43 +02:00
pulid_extract_id.py chore: move utility scripts under scripts (#1746) 2026-07-05 18:48:18 +08:00
remove_utf8_bom.py chore: move utility scripts under scripts (#1746) 2026-07-05 18:48:18 +08:00