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

Commit 3efee23

Browse files
authored
modify build file to include ffmpeg@7 and fix mingw-w64 install failure
1 parent a8fa1bb commit 3efee23

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 23 additions & 2 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
@@ -75,8 +76,28 @@ jobs:
7576
# As of mingw-w64 12, brew uses UCRT instead of MSVCRT
7677
# Wine will fail to build with UCRT, so we must rollback.
7778
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
79+
# brew update necessitates tap creation ☹️☹️☹️
80+
TAP_USER="local"
81+
TAP_NAME="mingw-w64-rollback"
82+
TAP_PATH="$RUNNER_TEMP/homebrew-$TAP_NAME"
83+
84+
# create local tap manually bc i cant figure out tap-new
85+
mkdir -p "$TAP_PATH/Formula"
86+
87+
git -C "$TAP_PATH" init
88+
git -C "$TAP_PATH" config user.email "actions@users.noreply.github.com"
89+
git -C "$TAP_PATH" config user.name "github-actions"
90+
91+
# add mingw 11 latest
92+
curl -L "https://raw.githubusercontent.com/Homebrew/homebrew-core/31209a399a7b40bf2cd3abd7aee2715547ccd5bd/Formula/m/mingw-w64.rb" \
93+
-o "$TAP_PATH/Formula/mingw-w64.rb"
94+
95+
git -C "$TAP_PATH" add Formula/mingw-w64.rb
96+
git -C "$TAP_PATH" commit -m "add msvcrt mingw"
97+
98+
# tap & go apple pay type beat
99+
brew tap "local/$TAP_NAME" "$TAP_PATH"
100+
brew install "local/$TAP_NAME/mingw-w64"
80101

81102
- name: Echo Libs [DEBUG]
82103
run: |

0 commit comments

Comments
 (0)