Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 12 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ on:
description: "Create new release"
required: true
type: boolean
pull_request: # validate the release build on PRs; the release job is skipped so nothing is published
paths:
# The build jobs clone stable-diffusion.cpp source from upstream
# (leejet/stable-diffusion.cpp), so only changes to this workflow itself
# can affect the outcome of a PR run. Scope PR runs to it.
- '.github/workflows/build.yml'
Comment thread
kenvandine marked this conversation as resolved.

env:
BRANCH_NAME: master
Expand Down Expand Up @@ -101,14 +107,9 @@ jobs:
strategy:
fail-fast: false
matrix:
include:
- sm: sm_75
- sm: sm_80
- sm: sm_86
- sm: sm_89
- sm: sm_90
- sm: sm_100
- sm: sm_120
# On PRs only build one representative arch (packaging logic is identical
# across all sm_*); build the full matrix on schedule/dispatch.
sm: ${{ github.event_name == 'pull_request' && fromJSON('["sm_89"]') || fromJSON('["sm_75", "sm_80", "sm_86", "sm_89", "sm_90", "sm_100", "sm_120"]') }}

steps:
- name: Clone
Expand Down Expand Up @@ -202,14 +203,9 @@ jobs:
strategy:
fail-fast: false
matrix:
include:
- sm: sm_75
- sm: sm_80
- sm: sm_86
- sm: sm_89
- sm: sm_90
- sm: sm_100
- sm: sm_120
# On PRs only build one representative arch (packaging logic is identical
# across all sm_*); build the full matrix on schedule/dispatch.
sm: ${{ github.event_name == 'pull_request' && fromJSON('["sm_89"]') || fromJSON('["sm_75", "sm_80", "sm_86", "sm_89", "sm_90", "sm_100", "sm_120"]') }}

steps:
- name: Clone
Expand Down
Loading