Homebrew CI
Workflow: homebrew-ci.yml
Homebrew CI takes an existing, tested macOS .tar.gz containing one executable from a previous job in the same workflow run. It generates a formula and validates a real local Homebrew installation without publishing to a remote tap.
Caller
Section titled “Caller”jobs: build: runs-on: macos-15-intel steps: - uses: actions/checkout@v7 # Build a portable markbox executable and create the archive here. - uses: actions/upload-artifact@v7 with: name: macos-portable-x64 path: dist/markbox-macos-x64.tar.gz
formula: needs: build uses: RuchirChawdhry/ci-workflows/.github/workflows/homebrew-ci.yml@main with: artifact-name: macos-portable-x64 archive-path: markbox-macos-x64.tar.gz app-name: markbox version: '0.1.0' release-url: https://github.com/OWNER/REPO/releases/download/v0.1.0/markbox-macos-x64.tar.gz homepage: https://github.com/OWNER/REPOResults
Section titled “Results”The workflow computes SHA-256, generates Formula/<app>.rb, tests installation through a temporary local tap, verifies the installed executable with --help, and uploads the formula as an artifact for review.
It does not push to Homebrew or a personal tap. The eventual release must serve identical, publicly accessible archive bytes.