Skip to content

Commit 14fb6c5

Browse files
authored
Update bottle.yml to use temporary local tap for mfc
1 parent 8ff6ca1 commit 14fb6c5

1 file changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/bottle.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,30 @@ jobs:
6868
echo "Release tag: ${TAG}"
6969
echo "Bottle root_url: ${ROOT_URL}"
7070
71-
- name: Install formula with --build-bottle (from checked-out file)
71+
- name: Install formula with --build-bottle (from checked-out formula via temp tap)
7272
run: |
7373
set -euo pipefail
74-
75-
echo "Installing mfc with --build-bottle from ./Formula/mfc.rb (allowing non-fatal dylib fixup failures)..."
76-
74+
75+
echo "Installing mfc with --build-bottle from checked-out Formula/mfc.rb via a temporary local tap..."
76+
77+
# brew tap-new needs git identity sometimes
78+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
79+
git config --global user.name "github-actions[bot]"
80+
81+
# Create a local tap and copy the formula into Homebrew's tap location
82+
brew tap-new mflowcode/local
83+
TAP_DIR="$(brew --repository)/Library/Taps/mflowcode/homebrew-local"
84+
mkdir -p "${TAP_DIR}/Formula"
85+
cp Formula/mfc.rb "${TAP_DIR}/Formula/mfc.rb"
86+
87+
# Homebrew may exit non-zero due to dylib fixup issues in Python wheels,
88+
# even though the formula actually installed correctly. Treat that as
89+
# non-fatal as long as the formula is present.
7790
set +e
78-
brew install --build-bottle ./Formula/mfc.rb 2>&1 | tee /tmp/brew-install.log
91+
brew install --build-bottle mflowcode/local/mfc 2>&1 | tee /tmp/brew-install.log
7992
brew_exit_code=$?
8093
set -e
81-
94+
8295
if brew list mfc &>/dev/null; then
8396
echo "✅ mfc installed successfully (ignoring dylib fixup warnings)"
8497
else

0 commit comments

Comments
 (0)