Skip to content

ci: only build native apps a PR changes - #26

Merged
mizanxali merged 5 commits into
mainfrom
ci/build-changed-apps
Oct 14, 2026
Merged

mizanxali merged 5 commits into
mainfrom
ci/build-changed-apps

Conversation

@mizanxali

@mizanxali mizanxali commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Most PRs touch one app, but CI checks and builds all 11 apps on every run: 22 native jobs and about 20–25 minutes per run.

What changed

  • A new changes job decides which apps to check and build:
    • PRs: builds only the apps with changed files under apps/<name>/. Docs-only changes (docs/, *.md, images) skip the native builds.
    • Changes outside apps/ (lockfile, packages/, CI, root config): builds every app.
    • Pushes to main: always builds every app.
  • check (typecheck, lint, test, JS bundle) is scoped the same way, using turbo --filter for the changed apps. Shared code changes still check everything, including packages/.
  • The android and ios matrices come from apps/, and the iOS scheme is read from ios/*.xcworkspace. Adding a new app no longer needs a CI edit.
  • A new native job rolls up the native builds. It passes when they succeed or are skipped, and fails if any build fails or is cancelled.

Before merging: update the main ruleset

The required status checks still list per-app jobs, such as ios (cowrite, Cowrite). The iOS jobs are now named ios (cowrite), and per-app jobs no longer run on every PR. Replace the per-app required checks with check and native, or this PR and later PRs will wait forever on checks that never report.

pushes to main and prs touching anything outside apps/ still build every app.
the matrix now comes from apps/, so new apps need no ci edit, and a single
native job rolls up the builds for branch protection.
@mizanxali
mizanxali force-pushed the ci/build-changed-apps branch from 873b937 to e1c0f3f Compare October 14, 2026 18:57
typecheck, lint, test and the js bundle now run through turbo filters for
the apps a pr touches; everything still runs when shared code changes.
@mizanxali
mizanxali merged commit 02c9a4a into main Oct 14, 2026
3 of 14 checks passed
@mizanxali
mizanxali deleted the ci/build-changed-apps branch October 14, 2026 19:09
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.

1 participant