diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd5c776..ecfe5a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,6 +78,20 @@ jobs: with: platforms: all + - name: Install llvm@18 + if: matrix.platform == 'macos-intel' || matrix.platform == 'macos-arm' + run: | + brew install llvm@18 + echo "$(brew --prefix)/opt/llvm/bin" >> $GITHUB_PATH + echo "LDFLAGS=-L$(brew --prefix)/opt/llvm/lib -L$(brew --prefix)/opt/llvm/lib/c++ -L/opt/homebrew/lib -Wl,-rpath,$(brew --prefix)/opt/llvm/lib/c++" >> "$GITHUB_ENV" + echo "CPPFLAGS=-I$(brew --prefix)/opt/llvm/include -I/opt/homebrew/include -fexperimental-library" >> "$GITHUB_ENV" + echo "CC=clang" >> "$GITHUB_ENV" + echo "CXX=clang++" >> "$GITHUB_ENV" + echo "OBJC=clang" >> "$GITHUB_ENV" + echo "CC_LD=lld" >> "$GITHUB_ENV" + echo "CXX_LD=lld" >> "$GITHUB_ENV" + echo "OBJC_LD=lld" >> "$GITHUB_ENV" + - name: Build wheels if: matrix.platform != 'macos-arm' uses: pypa/cibuildwheel@v2.19.1