Skip to content

Commit

Permalink
[CI] Re-implement the fix to the brew install lit issue
Browse files Browse the repository at this point in the history
CI has started failing again recently and I found this solution while
going over: actions/runner-images#2322
  • Loading branch information
banach-space committed Nov 18, 2022
1 parent d966673 commit a9eb52e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/x86-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ jobs:
type: [Debug, Release]
steps:
- uses: actions/checkout@v1
- name: Unbreak Python in Github Actions
# See:
# * https://github.com/actions/runner-images/issues/2322
# * https://github.com/libui-ng/libui-ng/commit/97d9601e74fadea1f8d1869c77acbe24be2886e2
run: |
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
sudo rm -rf /Library/Frameworks/Python.framework/
brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3
- name: Install Dependencies
run: |
brew update
brew install llvm@15
# This feels wrong, but otherwise `brew install lit` fails and I have
# no time to investigate further just now.
# TODO: Revisit
sudo rm -rf '/usr/local/bin/2to3-3.11' '/usr/local/bin/idle3.11' '/usr/local/bin/pydoc3.11' '/usr/local/bin/python3.11' '/usr/local/bin/python3.11-config'
brew install lit
- name: Build HelloWorld
run: |
Expand Down

0 comments on commit a9eb52e

Please sign in to comment.