Fix add llvmlite to mac intel (#1205)

Co-authored-by: Wendong-Fan <133094783+Wendong-Fan@users.noreply.github.com>
Co-authored-by: Wendong-Fan <w3ndong.fan@gmail.com>
This commit is contained in:
Tong Chen 2026-02-11 17:56:57 +08:00 committed by GitHub
parent c6adcdec41
commit ad44e59485
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 758 additions and 146 deletions

View file

@ -84,16 +84,26 @@ jobs:
sudo apt-get update
sudo apt-get install -y libfuse2
# Install LLVM 20 for macOS Intel - llvmlite 0.46.0 only supports LLVM 20 (not 21)
- name: Install LLVM 20 (macOS Intel)
if: runner.os == 'macOS' && matrix.arch == 'x64'
run: |
brew install llvm@20
echo "LLVM_DIR=$(brew --prefix llvm@20)/lib/cmake/llvm" >> $GITHUB_ENV
echo "CMAKE_PREFIX_PATH=$(brew --prefix llvm@20)/lib/cmake/llvm" >> $GITHUB_ENV
# Step for macOS builds with signing
- name: Build Release Files (macOS with signing)
if: runner.os == 'macOS'
timeout-minutes: 90
run: |
# Increase file descriptor limit to prevent EMFILE errors during signing
# This is needed because electron-builder signs all files recursively,
# and Python venvs contain thousands of files
ulimit -n 65536 || ulimit -n 10240
echo "File descriptor limit set to: $(ulimit -n)"
# Set file descriptor limit to system maximum (hard limit) to prevent EMFILE during signing
HARD=$(ulimit -Hn 2>/dev/null)
if [ -n "$HARD" ] && [ "$HARD" != "unlimited" ]; then
ulimit -n "$HARD" 2>/dev/null || true
fi
ulimit -n 65536 2>/dev/null || ulimit -n 10240 2>/dev/null || true
echo "File descriptor limit: $(ulimit -n) (hard: $(ulimit -Hn 2>/dev/null || echo 'N/A'))"
npm run build -- --arch ${{ matrix.arch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}