Skip to content

Commit e16cdfe

Browse files
committed
#22: % update build-cross-platform.yml4
1 parent 2c4fdb8 commit e16cdfe

File tree

2 files changed

+36
-174
lines changed

2 files changed

+36
-174
lines changed

.github/workflows/build-cross-platform.yml

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -226,19 +226,23 @@ jobs:
226226
- name: Install build dependencies (macOS)
227227
if: matrix.os == 'macos-latest'
228228
run: |
229-
# Use already installed packages when possible, install only missing
230-
brew list autoconf || brew install autoconf
231-
brew list libuv || brew install libuv
232-
brew list icu4c || brew install icu4c
233-
brew list openssl@3 || brew install openssl@3
229+
# Install required packages (force reinstall if needed)
230+
brew install autoconf || brew reinstall autoconf
231+
brew install libuv || brew reinstall libuv
232+
brew install icu4c || brew reinstall icu4c
233+
brew install openssl@3 || brew reinstall openssl@3
234234
235235
# Verify LibUV version
236-
pkg-config --modversion libuv || true
236+
pkg-config --modversion libuv || echo "LibUV not found"
237237
238-
# Setup environment variables for keg-only packages
238+
# Setup environment variables for keg-only packages
239239
echo "PKG_CONFIG_PATH=$(brew --prefix openssl@3)/lib/pkgconfig:$(brew --prefix icu4c)/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
240240
echo "CPPFLAGS=-I$(brew --prefix openssl@3)/include -I$(brew --prefix icu4c)/include" >> $GITHUB_ENV
241241
echo "LDFLAGS=-L$(brew --prefix openssl@3)/lib -L$(brew --prefix icu4c)/lib" >> $GITHUB_ENV
242+
243+
# Debug info
244+
echo "Autoconf version: $(autoconf --version | head -1)"
245+
echo "LibUV version: $(pkg-config --modversion libuv || echo 'N/A')"
242246
243247
# ==================== WINDOWS CONFIGURE & BUILD ====================
244248
- name: Configure and Build PHP (Windows)
@@ -249,7 +253,13 @@ jobs:
249253
call C:\php-sdk\bin\phpsdk_buildtree.bat phpdev
250254
call C:\php-sdk\bin\phpsdk_setvars.bat
251255
buildconf.bat
256+
REM Check if async extension exists
257+
dir ext\async
258+
REM Configure with verbose output
259+
configure.bat --help | findstr async
252260
configure.bat --enable-opcache --enable-async --enable-pdo --with-pdo-mysql --enable-sockets --with-sqlite3 --with-curl --enable-ftp --with-pdo-pgsql
261+
REM Check configuration
262+
type config.log | findstr async
253263
nmake
254264
shell: cmd
255265

@@ -258,7 +268,19 @@ jobs:
258268
if: matrix.os == 'macos-latest'
259269
working-directory: php-src
260270
run: |
271+
# Debug environment
272+
echo "PATH: $PATH"
273+
echo "PKG_CONFIG_PATH: $PKG_CONFIG_PATH"
274+
which autoconf
275+
autoconf --version
276+
277+
# Check async extension
278+
ls -la ext/async/
279+
280+
# Build configure
261281
./buildconf -f
282+
283+
# Configure with minimal options
262284
./configure \
263285
--enable-zts \
264286
--enable-opcache \
@@ -288,8 +310,15 @@ jobs:
288310
if: matrix.os == 'windows-latest'
289311
working-directory: php-src/ext/async
290312
run: |
313+
REM Check PHP version and modules
291314
php.exe -v
292315
php.exe -m
316+
REM Check for async functions
317+
php.exe -r "echo 'Async namespace: ' . (class_exists('Async\\Context') ? 'EXISTS' : 'NOT FOUND') . PHP_EOL;"
318+
php.exe -r "echo 'spawn function: ' . (function_exists('Async\\spawn') ? 'EXISTS' : 'NOT FOUND') . PHP_EOL;"
319+
REM Check extension files
320+
dir ..\..\ | findstr async
321+
REM Run actual tests
293322
php.exe ../../run-tests.php ^
294323
-P -q -x -j4 ^
295324
-g FAIL,BORK,LEAK,XLEAK ^

.github/workflows/build-full.yml

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)