Skip to content

Enable UPX compression for macOS and Windows#101

Open
samdark wants to merge 5 commits into
masterfrom
issue-94-upx-cross-platform
Open

Enable UPX compression for macOS and Windows#101
samdark wants to merge 5 commits into
masterfrom
issue-94-upx-cross-platform

Conversation

@samdark

@samdark samdark commented Jul 13, 2026

Copy link
Copy Markdown
Member

Fixes #94. Installs UPX in macOS and Windows packaging workflows and compresses the generated native binaries with --best --lzma. Adds packaging assertions covering the UPX integration.

Copilot AI review requested due to automatic review settings July 13, 2026 14:50
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@samdark, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 54 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4f02f6e1-ae1b-46c3-a059-bb011accd60c

📥 Commits

Reviewing files that changed from the base of the PR and between 934a7f6 and 030ae98.

📒 Files selected for processing (6)
  • .github/workflows/package-static.yml
  • .github/workflows/release.yml
  • .github/workflows/run-tests.yml
  • build/package-macos.sh
  • build/package-windows.ps1
  • tests/Unit/Packaging/ConfigurationPackagingTest.php
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue-94-upx-cross-platform

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the existing Linux-only UPX usage to Windows and macOS packaging by installing UPX in the relevant GitHub Actions workflows and invoking upx --best --lzma on the produced native binaries, with unit-test assertions updated to cover the integration.

Changes:

  • Install UPX in Windows (Chocolatey) and macOS (Homebrew) workflow jobs.
  • Compress Windows and macOS packaged binaries via UPX using --best --lzma.
  • Add/extend packaging-script assertions to verify UPX integration.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/Unit/Packaging/ConfigurationPackagingTest.php Adds assertions to validate UPX presence/usage in packaging scripts.
build/package-windows.ps1 Requires UPX and compresses the generated .exe with UPX.
build/package-macos.sh Requires UPX and compresses the generated binary with UPX.
.github/workflows/run-tests.yml Installs UPX in Windows/macOS test jobs to support packaging+smoke tests.
.github/workflows/release.yml Installs UPX in Windows/macOS release packaging jobs.
.github/workflows/package-static.yml Installs UPX in Windows/macOS static packaging jobs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/Unit/Packaging/ConfigurationPackagingTest.php
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.

Enable UPX for MacOS and Windows

2 participants