@@ -585,29 +585,18 @@ jobs:
585585 EXT_DIR=$(php -r "echo ini_get('extension_dir');")
586586
587587 if [[ "${{ matrix.os }}" == "macos-13" ]]; then
588- BUILT_LIB=$(find target/release -name "libcss_inline_php.dylib" -o -name "css_inline_php.dylib" | head -1)
589- if [[ -z "$BUILT_LIB" ]]; then
590- BUILT_LIB=$(find target/release -name "*.dylib" | head -1)
591- fi
592- sudo cp "$BUILT_LIB" "$EXT_DIR/css_inline.so"
588+ BUILT_LIB=$(find target/release -name "*.dylib" | head -1)
593589 else
594590 BUILT_LIB=$(find target/release -name "*.so" | head -1)
595- sudo cp "$BUILT_LIB" "$EXT_DIR/css_inline.so"
596591 fi
592+ sudo cp "$BUILT_LIB" "$EXT_DIR/css_inline.so"
597593 working-directory : ./bindings/php
598594 shell : bash
599595
600596 - name : Enable and verify extension
601597 run : |
602598 if [[ "${{ matrix.os }}" == "macos-13" ]]; then
603- # On macOS, find the additional ini directory
604599 PHP_INI_DIR=$(php -i | grep "Scan this dir for additional .ini files" | cut -d' ' -f9 | tr -d ' ')
605- if [[ -z "$PHP_INI_DIR" || "$PHP_INI_DIR" == "(none)" ]]; then
606- # If no scan dir, use the main php.ini location
607- PHP_INI=$(php -i | grep "Loaded Configuration File" | cut -d' ' -f9)
608- PHP_INI_DIR=$(dirname "$PHP_INI")/conf.d
609- sudo mkdir -p "$PHP_INI_DIR"
610- fi
611600 echo "extension=css_inline" | sudo tee "$PHP_INI_DIR/99-css_inline.ini"
612601 else
613602 echo "extension=css_inline" | sudo tee /etc/php/${{ matrix.php-version }}/cli/conf.d/99-css_inline.ini
0 commit comments