Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/homebrew-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,27 @@ jobs:
SHA256="${{ steps.sha256.outputs.sha256 }}"

# Update formula with new version and SHA256
sed -i "s|archive/v.*\.tar\.gz|archive/v${VERSION}.tar.gz|" homebrew/pmat.rb
sed -i "s|sha256 \".*\"|sha256 \"${SHA256}\"|" homebrew/pmat.rb
sed -i "s|archive/v.*\.tar\.gz|archive/v${VERSION}.tar.gz|" Formula/pmat.rb
sed -i "s|sha256 \".*\"|sha256 \"${SHA256}\"|" Formula/pmat.rb

echo "Updated formula:"
cat homebrew/pmat.rb | grep -E "(url|sha256)"
cat Formula/pmat.rb | grep -E "(url|sha256)"

- name: Commit updated formula
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add homebrew/pmat.rb
git add Formula/pmat.rb
git commit -m "homebrew: Update formula to v${{ steps.version.outputs.version }}" || exit 0
git push

- name: Create PR to homebrew-core (manual step)
run: |
echo "📝 Manual step required:"
echo "1. Fork https://github.com/Homebrew/homebrew-core"
echo "2. Copy updated homebrew/pmat.rb to Formula/pmat.rb"
echo "2. Copy updated Formula/pmat.rb to Formula/pmat.rb"
echo "3. Test with: brew install --build-from-source Formula/pmat.rb"
echo "4. Submit PR with title: 'pmat ${{ steps.version.outputs.version }}'"
echo ""
echo "Formula ready at: homebrew/pmat.rb"
echo "Formula ready at: Formula/pmat.rb"
echo "SHA256: ${{ steps.sha256.outputs.sha256 }}"
12 changes: 6 additions & 6 deletions .github/workflows/multi-ecosystem-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@ jobs:
run: |
VERSION="${{ needs.prepare.outputs.version }}"
SHA256="${{ needs.prepare.outputs.sha256 }}"

# Update formula with new version and SHA256
sed -i "s|archive/v.*\.tar\.gz|archive/v${VERSION}.tar.gz|" homebrew/pmat.rb
sed -i "s|sha256 \".*\"|sha256 \"${SHA256}\"|" homebrew/pmat.rb
sed -i "s|archive/v.*\.tar\.gz|archive/v${VERSION}.tar.gz|" Formula/pmat.rb
sed -i "s|sha256 \".*\"|sha256 \"${SHA256}\"|" Formula/pmat.rb

echo "Updated Homebrew formula:"
cat homebrew/pmat.rb | grep -E "(url|sha256|version)"
cat Formula/pmat.rb | grep -E "(url|sha256|version)"

- name: Commit Homebrew updates
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add homebrew/pmat.rb
git add Formula/pmat.rb
git commit -m "homebrew: Update to v${{ needs.prepare.outputs.version }}" || exit 0
git push

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions homebrew/test-formula.sh → Formula/test-formula.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ brew --version

echo ""
echo "🧪 Testing formula syntax..."
brew audit --strict homebrew/pmat.rb
brew audit --strict Formula/pmat.rb

echo ""
echo "🔍 Installing from local formula..."
brew install --build-from-source homebrew/pmat.rb
brew install --build-from-source Formula/pmat.rb

echo ""
echo "✅ Testing installed binary..."
Expand Down
2 changes: 1 addition & 1 deletion docs/DISTRIBUTION_STATUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ These distributions have automated package updates but require one-time manual s
- **Workflow**: `.github/workflows/multi-ecosystem-release.yml`
- **Automation**: Formula auto-updated with SHA256
- **Manual Step**: Submit PR to homebrew-core (one-time)
- **Files**: `homebrew/pmat.rb`, `homebrew/SUBMIT_TO_CORE.md`
- **Files**: `Formula/pmat.rb`, `Formula/SUBMIT_TO_CORE.md`
- **Post-Submission**: Fully automated forever

#### 🔄 Arch Linux AUR
Expand Down