Skip to content

Fix Inno Setup installer download failure in compile-inno-setup workflow - #702

Merged
aooohan merged 2 commits into
mainfrom
copilot/fix-failing-github-actions-job
Sep 7, 2026
Merged

aooohan merged 2 commits into
mainfrom
copilot/fix-failing-github-actions-job

Conversation

Copilot AI commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

The "Compile setup and publish" job (run 34022443685 / job 101457362884) failed because curl -L https://jrsoftware.org/download.php/is.exe no longer returns the actual installer binary — it now returns a ~10KB HTML page instead, causing installer.exe to fail with "corrupted and unreadable."

Changes

  • Replace unreliable download source: Added a step using actions/github-script to query the GitHub API for the latest jrsoftware/issrc release and resolve the browser_download_url of the x64 installer asset.
  • Use resolved URL for download: The "Install Inno Setup" step now curls this direct, versioned GitHub release asset URL instead of the jrsoftware.org/download.php redirector.
- name: Get latest Inno Setup release asset
  id: inno-setup-release
  uses: actions/github-script@v9
  with:
    github-token: ${{ secrets.GITHUB_TOKEN }}
    result-encoding: string
    script: |
      const release = await github.rest.repos.getLatestRelease({
        owner: "jrsoftware",
        repo: "issrc",
      });
      const asset = release.data.assets.find((a) => a.name.endsWith("-x64.exe"));
      if (!asset) {
        throw new Error("Could not find Inno Setup x64 installer asset in latest release");
      }
      return asset.browser_download_url;
- name: Install Inno Setup
  run: |
    curl --retry 10 --retry-all-errors -L -o installer.exe "${{ steps.inno-setup-release.outputs.result }}"
    ./installer.exe /verysilent /allusers /dir=inst
    sleep 60

Since this workflow only runs on release: released events, end-to-end confirmation requires an actual release trigger.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'Compile setup and publish' Fix Inno Setup installer download failure in compile-inno-setup workflow Sep 7, 2026
Copilot AI requested a review from aooohan September 7, 2026 01:26
@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 29.83%. Comparing base (af83c4f) to head (0ec6fb7).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aooohan
aooohan marked this pull request as ready for review September 7, 2026 02:50
Copilot AI lite review requested due to automatic review settings September 7, 2026 02:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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/issrc latest GitHub release and selects the *-x64.exe asset URL.
  • Download and install Inno Setup using the resolved browser_download_url instead of jrsoftware.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 }}"
@aooohan
aooohan merged commit c870564 into main Sep 7, 2026
9 checks passed
@aooohan
aooohan deleted the copilot/fix-failing-github-actions-job branch September 7, 2026 04:35
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.

3 participants