File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,20 @@ jobs:
230230 php-config --extension-dir
231231 ls -la $(php-config --extension-dir) | grep valkey || echo "valkey_glide.so not found in extension directory"
232232
233+ # Check if PIE installed to a different location (macOS Homebrew specific)
234+ if [[ "${{ matrix.host.OS }}" == "macos" ]]; then
235+ echo "=== Checking alternative extension locations ==="
236+ find /opt/homebrew/lib/php -name "valkey_glide.so" 2>/dev/null || echo "No valkey_glide.so found in /opt/homebrew/lib/php"
237+
238+ # If found in alternative location, create symlink
239+ ALT_SO=$(find /opt/homebrew/lib/php -name "valkey_glide.so" 2>/dev/null | head -1)
240+ if [ -n "$ALT_SO" ] && [ ! -f "$(php-config --extension-dir)/valkey_glide.so" ]; then
241+ echo "Found extension at: $ALT_SO"
242+ echo "Creating symlink to: $(php-config --extension-dir)/valkey_glide.so"
243+ sudo ln -sf "$ALT_SO" "$(php-config --extension-dir)/valkey_glide.so"
244+ fi
245+ fi
246+
233247 echo "=== Looking for built extension in PIE working directory ==="
234248 PIE_WORK_DIR=$(find "$HOME/.config/pie" -name "valkey-glide-php" -type d | head -1)
235249 if [ -n "$PIE_WORK_DIR" ]; then
You can’t perform that action at this time.
0 commit comments