Skip to content

Commit c2ee668

Browse files
committed
Update release.yml
1 parent 18421dc commit c2ee668

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,23 @@ jobs:
6363
# ----------------------------------------------------------------
6464
- name: Create macOS Universal Binary
6565
run: |
66-
# Create universal binary using lipo
67-
lipo -create -output dist/mcp-cli-ent dist/mcp-cli-ent-darwin-amd64 dist/mcp-cli-ent-darwin-arm64
66+
# Install llvm to get llvm-lipo
67+
sudo apt-get update && sudo apt-get install -y llvm
68+
69+
# Ensure llvm-lipo is available
70+
if ! command -v llvm-lipo &> /dev/null; then
71+
# Try to find versioned llvm-lipo and symlink it
72+
LIPO_PATH=$(find /usr/bin -name "llvm-lipo-*" | head -n 1)
73+
if [ -n "$LIPO_PATH" ]; then
74+
sudo ln -s "$LIPO_PATH" /usr/bin/llvm-lipo
75+
else
76+
echo "Error: llvm-lipo not found"
77+
exit 1
78+
fi
79+
fi
80+
81+
# Create universal binary using llvm-lipo
82+
llvm-lipo -create -output dist/mcp-cli-ent dist/mcp-cli-ent-darwin-amd64 dist/mcp-cli-ent-darwin-arm64
6883
6984
# Verify it is universal
7085
file dist/mcp-cli-ent

0 commit comments

Comments
 (0)