Commit 2485691
ci(release): konan cache, memory caps, exclude samples from release build
Three hardening fixes after v0.1.0's second attempt OOMed:
1. Cache ~/.konan like the CI test jobs do — the release job was
re-downloading the Kotlin/Native toolchain and rebuilding klibs cold
every run (>1h in assemble).
2. Cap build memory via GRADLE_USER_HOME properties (they take
precedence over the project's gradle.properties, so this holds even
when dispatch builds an older tag): 3g Gradle heap, 2g Kotlin
daemon, 2 workers — the project's -Xmx4g + full parallelism
oversubscribes the 7GB macOS runner.
3. Exclude :samples:* from the assemble/check gates. Samples are
CI-gated on every PR and are not published; their RELEASE-mode iOS
framework links run the K/N devirtualization pass, which is what
actually threw java.lang.OutOfMemoryError (attempt 2 died in
:samples:parity-app:linkReleaseFrameworkIosArm64). Verified with
--dry-run: 544 tasks scheduled, zero from :samples:*, all published
modules (bom, core, transports, storage, testing) still built.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>1 parent 71d14ed commit 2485691
1 file changed
Lines changed: 40 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
73 | 98 | | |
74 | 99 | | |
75 | 100 | | |
| |||
85 | 110 | | |
86 | 111 | | |
87 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
88 | 118 | | |
89 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
90 | 124 | | |
91 | 125 | | |
92 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
93 | 131 | | |
94 | 132 | | |
95 | 133 | | |
| |||
0 commit comments