Skip to content

Commit

Permalink
feat: update build workflow to use llvm-cx from macports instead of d…
Browse files Browse the repository at this point in the history
…eprecated cx-llvm from homebrew
  • Loading branch information
vapidinfinity committed Feb 8, 2025
1 parent 0e05c06 commit 18432fb
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,22 @@ jobs:
- name: Use Xcode 15
run: sudo xcode-select -switch /Applications/Xcode_15.2.app/Contents/Developer

- name: Install MacPorts
run: |
# install ports by defualt to /opt/local/bin
sudo curl -L https://github.com/macports/macports-base/releases/download/v2.10.5/MacPorts-2.10.5-13-Ventura.pkg > /tmp/macports.pkg
sudo installer -pkg /tmp/macports.pkg -target /
sudo ln -s /opt/local/bin/port /usr/local/bin/port
sudo port selfupdate
- name: Install Homebrew Packages
continue-on-error: true
run: |
REQUIRED_PACKAGES=(
# Build Dependencies
"bison"
"pkg-config"
"gcenx/wine/cx-llvm"
# "gcenx/wine/cx-llvm" # deprecated; using llvm-cx from macports instead
# Dependencies
"freetype"
Expand All @@ -51,12 +59,16 @@ jobs:
"sdl2"
"molten-vk"
"winetricks"
"ffmpeg@7" # added ffmpeg even though i dont know if it is even needed lol
)
brew update
brew install "${REQUIRED_PACKAGES[@]}"
- name: Install llvm-cx from macports
continue-on-error: true
run: |
sudo port install llvm-cx
- name: Install mingw
continue-on-error: true
run: |
Expand All @@ -80,7 +92,8 @@ jobs:
- name: Add bison & cx-llvm to $PATH
run: |
echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH
echo "$(brew --prefix cx-llvm)/bin" >> $GITHUB_PATH
# echo "$(brew --prefix cx-llvm)/bin" >> $GITHUB_PATH
echo "/opt/local/libexec/llvm-cx/bin" >> $GITHUB_PATH
- name: Configure wine64
run: |
Expand Down

0 comments on commit 18432fb

Please sign in to comment.