Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.

Commit bbab073

Browse files
Copilotzenfty
andcommitted
Fix macOS CI: Add ffmpeg@7, use temporary tap for mingw, make debug step resilient
Co-authored-by: vapidinfinity <41133734+vapidinfinity@users.noreply.github.com>
1 parent 4fd047e commit bbab073

1 file changed

Lines changed: 41 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 41 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
"sdl2"
6060
"molten-vk"
6161
"winetricks"
62+
"ffmpeg@7"
6263
)
6364
6465
brew update
@@ -69,25 +70,55 @@ jobs:
6970
run: |
7071
sudo port install llvm-cx
7172
72-
- name: Install mingw
73+
- name: Install mingw (install legacy formula from a temporary tap)
7374
continue-on-error: true
7475
run: |
75-
# As of mingw-w64 12, brew uses UCRT instead of MSVCRT
76-
# Wine will fail to build with UCRT, so we must rollback.
77-
78-
curl -L https://raw.githubusercontent.com/Homebrew/homebrew-core/31209a399a7b40bf2cd3abd7aee2715547ccd5bd/Formula/m/mingw-w64.rb > mingw-w64.rb && brew install mingw-w64.rb
79-
rm mingw-w64.rb
76+
set -euo pipefail
77+
FORMULA_URL="https://raw.githubusercontent.com/Homebrew/homebrew-core/31209a399a7b40bf2cd3abd7aee2715547ccd5bd/Formula/m/mingw-w64.rb"
78+
TMP_FORMULA="/tmp/mingw-w64.rb"
79+
curl -fL "$FORMULA_URL" -o "$TMP_FORMULA"
80+
TAP_USER="${GITHUB_ACTOR:-MythicApp}"
81+
TAP_REPO="homebrew-old-formula"
82+
TAP_FULL="$TAP_USER/$TAP_REPO"
83+
84+
brew tap-new "$TAP_FULL"
85+
TAP_DIR="$(brew --repo "$TAP_FULL")"
86+
mkdir -p "$TAP_DIR/Formula"
87+
mv "$TMP_FORMULA" "$TAP_DIR/Formula/mingw-w64.rb"
88+
89+
pushd "$TAP_DIR" >/dev/null
90+
git add -A || true
91+
git commit -m "Add legacy mingw-w64 formula" || true
92+
popd >/dev/null
93+
94+
brew update || true
95+
96+
if ! brew install "$TAP_FULL/mingw-w64"; then
97+
echo "Binary install failed; attempting build-from-source"
98+
brew install --build-from-source "$TAP_FULL/mingw-w64"
99+
fi
100+
# optional: cleanup tap after install
101+
# brew untap "$TAP_FULL" || true
80102
81103
- name: Echo Libs [DEBUG]
82104
run: |
105+
set -euo pipefail
83106
echo "Brew Libs"
84-
ls $(brew --prefix)/lib
107+
ls "$(brew --prefix)/lib" || true
85108
86-
echo "FFmpeg Libs"
87-
ls $(brew --prefix ffmpeg@7)/lib
109+
echo "FFmpeg Libs"
110+
if brew ls --versions ffmpeg@7 >/dev/null 2>&1; then
111+
ls "$(brew --prefix ffmpeg@7)/lib" || true
112+
else
113+
echo "ffmpeg@7 not installed"
114+
fi
88115
89116
echo "GStreamer Libs"
90-
ls $(brew --prefix gstreamer)/lib/gstreamer-1.0
117+
if brew ls --versions gstreamer >/dev/null 2>&1; then
118+
ls "$(brew --prefix gstreamer)/lib/gstreamer-1.0" || true
119+
else
120+
echo "gstreamer not installed"
121+
fi
91122
92123
- name: Add bison & cx-llvm to $PATH
93124
run: |

0 commit comments

Comments
 (0)