Skip to content

Commit d5a7be7

Browse files
committed
add windows tests and build
1 parent e650255 commit d5a7be7

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,13 @@ jobs:
222222
dir *.h -ErrorAction SilentlyContinue
223223
shell: powershell
224224

225-
- name: Copy lib files to root for Windows build
225+
- name: Prepare extension with lib files
226226
run: |
227-
echo "=== Copying lib files to root directory ==="
227+
echo "=== Copying lib files to extension root ==="
228228
if (Test-Path "lib") {
229-
echo "lib directory found, copying files..."
230-
Copy-Item -Path "lib\*.c" -Destination "." -Force
231-
Copy-Item -Path "lib\*.h" -Destination "." -Force
232-
echo "Files copied. Root directory now contains:"
229+
echo "Copying all lib files to root directory..."
230+
Copy-Item -Path "lib\*" -Destination "." -Recurse -Force
231+
echo "Files copied. Extension directory now contains:"
233232
dir *.c
234233
dir *.h
235234
} else {

0 commit comments

Comments
 (0)