Skip to content

feat: brew formulas#18

Merged
deicon merged 3 commits intodevelopfrom
feat/brewtap
Sep 14, 2025
Merged

feat: brew formulas#18
deicon merged 3 commits intodevelopfrom
feat/brewtap

Conversation

@deicon
Copy link
Copy Markdown
Owner

@deicon deicon commented Sep 14, 2025

feat: Homebrew formula generation and CI integration

Description:
This PR introduces a new script to automatically generate Homebrew formulas for `httprunner` and `harparser` on release. It also integrates this script into the CI workflow to keep the formulas up-to-date.

Motivation:
Manually updating the Homebrew formulas for each release is tedious and error-prone. This change automates the process, ensuring that users can easily install the latest versions of `httprunner` and `harparser` via Homebrew.

What was changed:
- Added a new script `.github/scripts/generate_formula.sh` that generates the Homebrew formulas for `httprunner` and `harparser` based on the release tag.
- Modified `.github/workflows/ci.yml` to:
    - Package archives with the tool name, tag, OS, and architecture.
    - Call the `generate_formula.sh` script on release.
    - Commit and push the updated formulas to the repository.
- Added new Formula files `Formula/harparser.rb` and `Formula/httprunner.rb` which are used as templates and updated by the script
- Modified the Makefile to correctly name the `harparser` output file.
- Updated the README to include installation instructions via Homebrew

Tests:
No new tests were added. The existing test in the generated Homebrew formula is used to verify the installation.

**Warning:** The generated Homebrew formulas currently contain placeholder values for the URL and SHA256 checksums. These values are updated by the CI workflow on release. Local testing of the script will not produce valid formulas without setting the correct environment variables and having the built binaries available.

@deicon deicon merged commit 18afd77 into develop Sep 14, 2025
12 checks passed
@deicon deicon deleted the feat/brewtap branch September 14, 2025 16:37
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.

1 participant