Skip to content

Homebrew automatiom#438

Merged
genedna merged 3 commits into
mainfrom
homebrew-automatiom
Jul 10, 2026
Merged

Homebrew automatiom#438
genedna merged 3 commits into
mainfrom
homebrew-automatiom

Conversation

@fleeto

@fleeto fleeto commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

No description provided.

fleeto added 3 commits July 7, 2026 15:45
Signed-off-by: Vincent C <dustise@live.com>
Signed-off-by: Vincent C <dustise@live.com>
Comment on lines +296 to +341
needs: update-homebrew-tap
runs-on: macos-latest
steps:
- name: Install and verify Homebrew formula
shell: bash
env:
GITHUB_REF_NAME: ${{ github.ref_name }}
run: |
set +e

warn() {
local message="$1"
echo "::warning::$message"
{
echo "### Homebrew formula verification warning"
echo
echo "$message"
} >> "$GITHUB_STEP_SUMMARY"
}

if ! brew tap libra-tools/libra; then
warn "Failed to tap libra-tools/libra; skipping Homebrew formula verification."
exit 0
fi

if ! brew install libra-tools/libra/libra; then
warn "Failed to install libra-tools/libra/libra; skipping version verification."
exit 0
fi

if ! actual_version="$(libra --version 2>&1)"; then
warn "The installed libra binary failed to report its version."
exit 0
fi

expected_version="libra ${GITHUB_REF_NAME#v}"
if [[ "$actual_version" != "$expected_version" ]]; then
warn "Installed version '$actual_version' does not match expected version '$expected_version'."
exit 0
fi

{
echo "### Homebrew formula verification"
echo
echo "Verified $expected_version from libra-tools/libra."
} >> "$GITHUB_STEP_SUMMARY"
@genedna genedna merged commit 1552cba into main Jul 10, 2026
4 checks passed
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