Skip to content

Comments

🐛 fix(ci): Disable npm cache for electron builds to fix binary corruption#152

Merged
trickpatty merged 1 commit intomainfrom
claude/fix-electron-ci-build-I7DQZ
Jan 22, 2026
Merged

🐛 fix(ci): Disable npm cache for electron builds to fix binary corruption#152
trickpatty merged 1 commit intomainfrom
claude/fix-electron-ci-build-I7DQZ

Conversation

@trickpatty
Copy link
Owner

Root cause: GitHub Actions npm cache can corrupt or incompletely cache large binary packages like app-builder-bin (~50MB). When npm ci restores from this corrupted cache, the binaries are missing or incomplete.

Evidence:

  • macOS builds failed at verification (binary didn't exist)
  • Linux/Windows passed verification but failed at build (corrupted binaries)
  • npm rebuild doesn't help because app-builder-bin has no build scripts

Solution: Remove npm caching for the four electron build jobs (Linux, Windows, macOS Intel, macOS ARM). These jobs run infrequently (only on push to main or releases), so the performance impact is minimal.

The build-and-test and security-audit jobs keep npm caching since they don't use electron-builder.

…tion

Root cause: GitHub Actions npm cache can corrupt or incompletely cache
large binary packages like app-builder-bin (~50MB). When npm ci restores
from this corrupted cache, the binaries are missing or incomplete.

Evidence:
- macOS builds failed at verification (binary didn't exist)
- Linux/Windows passed verification but failed at build (corrupted binaries)
- npm rebuild doesn't help because app-builder-bin has no build scripts

Solution: Remove npm caching for the four electron build jobs (Linux,
Windows, macOS Intel, macOS ARM). These jobs run infrequently (only on
push to main or releases), so the performance impact is minimal.

The build-and-test and security-audit jobs keep npm caching since they
don't use electron-builder.
@trickpatty trickpatty merged commit d2957dd into main Jan 22, 2026
12 checks passed
@trickpatty trickpatty deleted the claude/fix-electron-ci-build-I7DQZ branch January 22, 2026 00:25
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.

2 participants