|
69 | 69 | code: ${{ (github.event_name == 'workflow_dispatch' && inputs.catalog_publish) && 'true' || steps.filter.outputs.code }} |
70 | 70 | docs_catalog: ${{ steps.filter.outputs.docs_catalog }} |
71 | 71 | cli: ${{ steps.filter.outputs.cli }} |
| 72 | + cli_bundle: ${{ steps.filter.outputs.cli_bundle }} |
72 | 73 | skills: ${{ steps.filter.outputs.skills }} |
73 | 74 | catalog_index: ${{ steps.filter.outputs.catalog_index }} |
74 | 75 | codex_plugin: ${{ steps.filter.outputs.codex_plugin }} |
|
94 | 95 | git rev-parse --verify -q HEAD^2 > /dev/null || { echo "::error::HEAD is not the pull request merge commit"; exit 1; } |
95 | 96 | sha="$(git rev-parse --verify HEAD^1)" |
96 | 97 | echo "sha=$sha" >> "$GITHUB_OUTPUT" |
| 98 | + - name: Reject large binaries outside LFS |
| 99 | + if: github.event_name == 'pull_request' |
| 100 | + env: |
| 101 | + BASE_SHA: ${{ steps.base.outputs.sha }} |
| 102 | + run: sh scripts/check-large-files.sh --range "$BASE_SHA" HEAD |
97 | 103 | - uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4 |
98 | 104 | id: filter |
99 | 105 | with: |
@@ -131,6 +137,12 @@ jobs: |
131 | 137 | - "package.json" |
132 | 138 | - "bun.lock" |
133 | 139 | - ".github/workflows/ci.yml" |
| 140 | + # Skills packages/cli/scripts/build-copy.mjs bundles into the CLI tarball (size budget). |
| 141 | + cli_bundle: |
| 142 | + - "skills/hyperframes/**" |
| 143 | + - "skills/hyperframes-cli/**" |
| 144 | + - "skills/gsap/**" |
| 145 | + - "skills/media-use/**" |
134 | 146 | skills: |
135 | 147 | - "scripts/generate-captured-font-copies.mjs" |
136 | 148 | - "packages/cli/src/media-use/**" |
@@ -243,14 +255,14 @@ jobs: |
243 | 255 | name: Build |
244 | 256 | needs: changes |
245 | 257 | # A skipped required check passes, so a broken change detection must fail it instead. |
246 | | - if: ${{ !cancelled() && (needs.changes.result != 'success' || needs.changes.outputs.code == 'true') }} |
| 258 | + if: ${{ !cancelled() && (needs.changes.result != 'success' || needs.changes.outputs.code == 'true' || needs.changes.outputs.cli_bundle == 'true') }} |
247 | 259 | runs-on: ubuntu-latest |
248 | 260 | timeout-minutes: 10 |
249 | 261 | steps: |
250 | 262 | - name: Require change detection |
251 | 263 | if: needs.changes.result != 'success' |
252 | 264 | run: | |
253 | | - echo "::error::Change detection did not succeed, so this required check cannot pass." |
| 265 | + echo "::error::Detect changes did not succeed (it also rejects large binaries outside LFS); see its log. This required check cannot pass." |
254 | 266 | exit 1 |
255 | 267 | - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 |
256 | 268 | with: |
@@ -437,7 +449,7 @@ jobs: |
437 | 449 | - name: Require change detection |
438 | 450 | if: needs.changes.result != 'success' |
439 | 451 | run: | |
440 | | - echo "::error::Change detection did not succeed, so this required check cannot pass." |
| 452 | + echo "::error::Detect changes did not succeed (it also rejects large binaries outside LFS); see its log. This required check cannot pass." |
441 | 453 | exit 1 |
442 | 454 | - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 |
443 | 455 | with: |
@@ -543,7 +555,7 @@ jobs: |
543 | 555 | - name: Require change detection |
544 | 556 | if: needs.changes.result != 'success' |
545 | 557 | run: | |
546 | | - echo "::error::Change detection did not succeed, so this required check cannot pass." |
| 558 | + echo "::error::Detect changes did not succeed (it also rejects large binaries outside LFS); see its log. This required check cannot pass." |
547 | 559 | exit 1 |
548 | 560 | - name: Require producer source tests |
549 | 561 | if: needs.changes.outputs.code == 'true' && needs.producer-source-tests.result != 'success' |
@@ -772,7 +784,7 @@ jobs: |
772 | 784 | - name: Require change detection |
773 | 785 | if: needs.changes.result != 'success' |
774 | 786 | run: | |
775 | | - echo "::error::Change detection did not succeed, so this required check cannot pass." |
| 787 | + echo "::error::Detect changes did not succeed (it also rejects large binaries outside LFS); see its log. This required check cannot pass." |
776 | 788 | exit 1 |
777 | 789 | - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 |
778 | 790 | with: |
|
0 commit comments