Build Size Gate — CI Check for Build Size Regressions View on Asset Store (opens in new tab)

Package details

Latest version
1.0.0
Last updated
First released
Unity version
6000.3.7 or later
Package size
47 KB
Files
14
Views in the past week
4

Price tracking

Last checked
Tracked since
Lowest recorded
$24.99 on

Keywords

Build Size Gate — CI Check for Build Size Regressions

by HanoStudio (opens in new tab)

No ratings yet

Fail CI when your build grows past a committed baseline. Editor window + headless gate, three size metrics, and an artifact-level diff that shows which packaged files actually grew.

Price $24.99

Buy on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for Build Size Gate — CI Check for Build Size Regressions, 6 months Current $24.99; lowest $24.99; highest $24.99 in this period. $0 $12.5 $25 Oct Nov

Asset preview

1 / 5

Build Size Gate — CI Check for Build Size Regressions screenshot 1

Build Size Gate — CI Check for Build Size Regressions screenshot 1

About this asset

Every team has shipped this bug: the build was 40 MB last release, and somehow it's 55 MB now. Nobody noticed, because nobody was watching every merge.

Build Size Gate watches every merge.

It compares each build against a small, versioned JSON baseline and fails CI (non-zero exit code) when the build grows past your thresholds — absolute bytes or percent, warn or fail, per metric.

BUILT ON PUBLISHED, REPRODUCIBLE MEASUREMENTS

This tool came out of a public experiment series: 16 Android APKs, one variable changed at a time, every number published with raw data and a reproducible project. The methodology — and its open-source measurement engine — is documented at hellohanostudio.github.io.

THREE METRICS, NOT ONE

"Build size" is not one number. The gate checks three:

• artifact bytes — the file users download

• BuildReport total size — Unity's reported output

• packed asset bytes — serialized asset data

An APK can be stable while assets move, and assets can be stable while generated code grows. Gating all three catches both.

THE WINDOW (Tools ▸ Build Size Gate ▸ Open Window)

• Gate — run the check in the Editor: PASS/WARN/FAIL banner, per-metric deltas with reasons, and one-click "Approve Current Build" when growth is intentional.

• Baselines — capture a baseline from any build summary and edit thresholds in plain fields. No hand-edited JSON.

• Layers — compare two APK/AAB files entry by entry and see exactly which packaged files grew (libil2cpp.so, global-metadata.dat — the growth asset reports cannot attribute). Export CSV.

• CI Setup — generates a ready-to-run shell command and a GitHub Actions workflow with your paths filled in.

WORKS OUT OF THE BOX

A sample baseline and build summary are included — open the window and see a real check pass in under a minute, before your first build. After that: build once, capture, commit the JSON, done.

HONEST SCOPE (v1)

Built and validated on Android APK builds with Unity 6000.3 (IL2CPP/ARM64). The gate itself is platform-agnostic and reads a plain-text summary; iOS and AAB validation is on the roadmap. Editor-only — nothing ships in your player build.

Support: [email protected]

From the publisher's Asset Store listing.

Technical details

- CI gate with exit codes: 0 pass, 1 fail, 2 missing baseline, 3 invalid input

- Versioned JSON baselines, reviewable in pull requests

- Absolute (bytes) and relative (%) thresholds; warn and fail levels per metric

- Three gated metrics: artifact bytes, BuildReport totalSize, packed asset bytes

- Editor window: run checks, capture/edit/approve baselines

- Layers view: entry-level APK/AAB diff with CSV export

- GitHub Actions workflow + shell command generator

- Automatic post-build summary reporter (IPostprocessBuildWithReport)

- Headless batchmode CLI (-executeMethod), self-tested (pass/warn/fail/missing)

- Editor-only; zero runtime footprint

- Validated on Unity 6000.3, Android APK (IL2CPP/ARM64)

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP
6000.3.7f1 Compatible Compatible Compatible

As listed on the Asset Store.