Skip to content

ci: validate release build on pull requests#8

Merged
kenvandine merged 1 commit into
lemonade-sdk:lemonadefrom
kenvandine:add_ci_check
Jun 1, 2026
Merged

ci: validate release build on pull requests#8
kenvandine merged 1 commit into
lemonade-sdk:lemonadefrom
kenvandine:add_ci_check

Conversation

@kenvandine
Copy link
Copy Markdown
Member

Summary

Validate the release build on pull requests, mirroring the approach in lemonade-sdk/llama.cpp.

  • Add a pull_request trigger to build.yml, scoped via paths to the workflow file itself. The build jobs clone source from upstream (leejet/stable-diffusion.cpp), so only changes to this workflow can affect a PR run's outcome.
  • The pack/upload and release jobs stay gated on schedule || create_release, so nothing is published on a PR run — only the compile is exercised.
  • On PRs, the CUDA matrices build a single representative arch (sm_89) instead of all seven. Packaging logic is identical across sm_*, so one arch is a sufficient sample; the full matrix still runs on schedule/dispatch.

Effect on a PR run

  • CUDA (Ubuntu + Windows): 2 jobs (sm_89) instead of 14.
  • CPU / ROCm / Metal: unchanged — these already run one job each (ROCm builds all GPU targets in a single cmake invocation).

🤖 Generated with Claude Code

Add a pull_request trigger to build.yml so the release build is
validated on PRs, mirroring lemonade-sdk/llama.cpp. The pack/upload
and release jobs remain gated on schedule/create_release, so nothing
is published on a PR run.

Scope the trigger to the workflow file itself: the build jobs clone
source from upstream (leejet/stable-diffusion.cpp), so only changes
to this workflow can affect a PR run's outcome.

On PRs, the CUDA matrices build a single representative arch (sm_89)
instead of all seven; packaging logic is identical across sm_*, and
the full matrix still runs on schedule/dispatch.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds pull request validation to the CI workflow so that changes to the release build workflow itself can be compile-tested in PRs without publishing artifacts or creating releases.

Changes:

  • Add a pull_request trigger scoped to changes in .github/workflows/build.yml.
  • Reduce CUDA PR workload by building only a single representative architecture (sm_89) on PR events while keeping the full matrix for scheduled/manual runs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/build.yml
@kenvandine kenvandine merged commit e3937d9 into lemonade-sdk:lemonade Jun 1, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants