@@ -106,20 +106,20 @@ jobs:
106106          cd .. 
107107         shell : bash 
108108
109-       - name : Copy lib files to root for Windows build 
109+       - name : Prepare extension with lib files 
110110        run : | 
111-           echo "=== Copying lib files to root directory  ===" 
111+           echo "=== Copying lib files to extension root  ===" 
112112          if (Test-Path "lib") { 
113-             echo "lib directory found, copying files..." 
114-             Copy-Item -Path "lib\*.c" -Destination "." -Force 
115-             Copy-Item -Path "lib\*.h" -Destination "." -Force 
116-             echo "Files copied. Root directory now contains:" 
113+             echo "Copying all lib files to root directory..." 
114+             Copy-Item -Path "lib\*" -Destination "." -Recurse -Force 
115+             echo "Files copied. Extension directory now contains:" 
117116            dir *.c 
118117            dir *.h 
119118          } else { 
120119            echo "ERROR: lib directory not found!" 
121120            exit 1 
122121          } 
122+          shell : powershell 
123123
124124      - name : Build and test extension (PHP 8.4 NTS x64) 
125125        uses : php/php-windows-builder/extension@v1 
@@ -172,20 +172,20 @@ jobs:
172172          cd .. 
173173         shell : bash 
174174
175-       - name : Copy lib files to root for Windows build 
175+       - name : Prepare extension with lib files 
176176        run : | 
177-           echo "=== Copying lib files to root directory  ===" 
177+           echo "=== Copying lib files to extension root  ===" 
178178          if (Test-Path "lib") { 
179-             echo "lib directory found, copying files..." 
180-             Copy-Item -Path "lib\*.c" -Destination "." -Force 
181-             Copy-Item -Path "lib\*.h" -Destination "." -Force 
182-             echo "Files copied. Root directory now contains:" 
179+             echo "Copying all lib files to root directory..." 
180+             Copy-Item -Path "lib\*" -Destination "." -Recurse -Force 
181+             echo "Files copied. Extension directory now contains:" 
183182            dir *.c 
184183            dir *.h 
185184          } else { 
186185            echo "ERROR: lib directory not found!" 
187186            exit 1 
188187          } 
188+          shell : powershell 
189189
190190      - name : Build and test extension 
191191        uses : php/php-windows-builder/extension@v1 
0 commit comments