Skip to content

Commit 38b60a9

Browse files
committed
magic script!
1 parent 012e38a commit 38b60a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/tail-call.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,14 @@ jobs:
110110
run: |
111111
brew update
112112
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
113-
brew install llvm@${{ matrix.llvm }}
113+
brew install jq llvm@${{ matrix.llvm }}
114114
export SDKROOT="$(xcrun --show-sdk-path)"
115115
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
116116
export PATH="/usr/local/opt/llvm@{{ matrix.llvm }}/bin:$PATH"
117117
export PATH="/usr/local/opt/llvm/bin:$PATH"
118+
export LLVM_VERSION="$(curl -s https://formulae.brew.sh/api/formula/llvm@{{ matrix.llvm }}.json | jq -r .versions.stable)"
119+
export PATH="/usr/local/Cellar/llvm@{{ matrix.llvm }}/$LLVM_VERSION/bin:$PATH"
120+
unset LLVM_VERSION
118121
CC=clang-19 ./configure --with-tail-call-interp
119122
make all --jobs 4
120123
./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3

0 commit comments

Comments
 (0)