Repository navigation
Fix Inno Setup installer download failure in compile-inno-setup workflow - #702
Conversation
Co-authored-by: aooohan <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #702 +/- ##
=======================================
Coverage 29.83% 29.83%
=======================================
Files 84 84
Lines 5942 5942
=======================================
Hits 1773 1773
Misses 3943 3943
Partials 226 226 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 Changes recommended
The new curl download step should fail on non-2xx HTTP responses to avoid silently saving an HTML error page as installer.exe and reproducing the same failure mode.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR fixes the Windows installer build workflow by replacing an unreliable Inno Setup download redirect with a direct GitHub release asset URL resolved at runtime, preventing HTML being saved as the installer binary.
Changes:
- Add a step that queries the
jrsoftware/issrclatest GitHub release and selects the*-x64.exeasset URL. - Download and install Inno Setup using the resolved
browser_download_urlinstead ofjrsoftware.org/download.php/is.exe.
File summaries
| File | Description |
|---|---|
| .github/workflows/compile-inno-setup.yml | Resolves the latest Inno Setup x64 installer asset URL via GitHub API and uses it for installation in the release build job. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| - name: Install Inno Setup | ||
| run: | | ||
| curl --retry 10 --retry-all-errors -L -o installer.exe https://jrsoftware.org/download.php/is.exe | ||
| curl --retry 10 --retry-all-errors -L -o installer.exe "${{ steps.inno-setup-release.outputs.result }}" |
The "Compile setup and publish" job (run 34022443685 / job 101457362884) failed because
curl -L https://jrsoftware.org/download.php/is.exeno longer returns the actual installer binary — it now returns a ~10KB HTML page instead, causinginstaller.exeto fail with "corrupted and unreadable."Changes
actions/github-scriptto query the GitHub API for the latestjrsoftware/issrcrelease and resolve thebrowser_download_urlof the x64 installer asset.jrsoftware.org/download.phpredirector.Since this workflow only runs on
release: releasedevents, end-to-end confirmation requires an actual release trigger.