Skip to content

Commit 8f4de60

Browse files
committed
ci: scope iOS screenshots to native changes
1 parent 1cef259 commit 8f4de60

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3168,7 +3168,7 @@ jobs:
31683168
needs: [preflight]
31693169
if: needs.preflight.outputs.run_ios_build == 'true'
31703170
runs-on: ${{ (github.event_name == 'workflow_dispatch' || github.run_attempt > 1) && 'macos-26' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'blacksmith-12vcpu-macos-26' || 'macos-26') }}
3171-
timeout-minutes: 100
3171+
timeout-minutes: 150
31723172
env:
31733173
HISTORICAL_TARGET: ${{ needs.preflight.outputs.compatibility_target }}
31743174
steps:
@@ -3313,11 +3313,11 @@ jobs:
33133313
retention-days: 14
33143314

33153315
- name: Capture iOS release screenshots
3316-
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && env.HISTORICAL_TARGET != 'true' }}
3316+
if: ${{ (github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && needs.preflight.outputs.run_macos == 'true')) && env.HISTORICAL_TARGET != 'true' }}
33173317
run: pnpm ios:screenshots
33183318

33193319
- name: Upload iOS release screenshot evidence
3320-
if: ${{ always() && (github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && env.HISTORICAL_TARGET != 'true' }}
3320+
if: ${{ always() && (github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && needs.preflight.outputs.run_macos == 'true')) && env.HISTORICAL_TARGET != 'true' }}
33213321
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
33223322
with:
33233323
name: ios-release-screenshots-${{ needs.preflight.outputs.checkout_revision }}

‎test/scripts/ios-release-fastlane-gates.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,16 +310,17 @@ describe("iOS Fastlane release upload gates", () => {
310310
);
311311
});
312312

313-
it("runs the exact screenshot lane during manual and full release CI", () => {
313+
it("runs the exact screenshot lane during native Apple, manual, and full release CI", () => {
314314
const workflow = readFileSync(ciWorkflowPath, "utf8");
315315
const iosJobStart = workflow.indexOf("\n ios-build:\n");
316316
const iosJobEnd = workflow.indexOf("\n android:\n", iosJobStart);
317317
const iosJob = workflow.slice(iosJobStart, iosJobEnd);
318318

319-
expect(iosJob).toContain("timeout-minutes: 100");
319+
expect(iosJob).toContain("timeout-minutes: 150");
320320
expect(iosJob).toContain("Capture iOS release screenshots");
321321
expect(iosJob).toContain("github.event_name == 'workflow_dispatch'");
322322
expect(iosJob).toContain("github.event_name == 'pull_request'");
323+
expect(iosJob).toContain("needs.preflight.outputs.run_macos == 'true'");
323324
expect(iosJob).toContain("run: pnpm ios:screenshots");
324325
expect(iosJob).toContain("Upload iOS release screenshot evidence");
325326
expect(iosJob).toContain("apps/ios/build/SnapshotTestResults/*.xcresult");

0 commit comments

Comments
 (0)