4444 # Load kernel modules
4545 kldload accf_http
4646
47- # Install build dependencies
47+ # Install build dependencies including LibUV
4848 pkg install -y \
4949 autoconf \
5050 bison \
@@ -68,30 +68,15 @@ jobs:
6868 webp \
6969 libavif \
7070 curl \
71- cmake
72-
73- # Build LibUV from source (need >= 1.44.0)
74- echo "=== Building LibUV from source ==="
75- fetch https://github.com/libuv/libuv/archive/v1.48.0.tar.gz
76- tar -xzf v1.48.0.tar.gz
77- cd libuv-1.48.0
78- mkdir build
79- cd build
80- cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
81- gmake -j2
82- gmake install
83- ldconfig
84- cd ../..
71+ libuv
8572
8673 echo "=== System Info ==="
8774 echo "FreeBSD version:"
8875 freebsd-version
8976 echo "CPU info:"
9077 sysctl hw.model hw.ncpu hw.physmem
91- echo "LibUV version (built from source): 1.48.0"
92-
93- run : |
94- cd $GITHUB_WORKSPACE
78+ echo "LibUV version:"
79+ pkg info libuv
9580
9681 # Configure PHP with async extension
9782 cd php-src
@@ -146,115 +131,72 @@ jobs:
146131 # Install PHP
147132 echo "=== Installing PHP ==="
148133 mkdir -p /etc/php.d
149- gmake install
134+ gmake install > /dev/null
150135 echo "opcache.enable_cli=1" > /etc/php.d/opcache.ini
136+ echo "opcache.protect_memory=1" >> /etc/php.d/opcache.ini
137+ echo "opcache.preload_user=root" >> /etc/php.d/opcache.ini
138+
139+ run : |
140+ cd $GITHUB_WORKSPACE
151141
152142 # Test environment setup
153143 export SKIP_IO_CAPTURE_TESTS=1
154144 export CI_NO_IPV6=1
155145 export STACK_LIMIT_DEFAULTS_CHECK=1
156146
157147 echo "=== PHP Version ==="
158- /usr/local/bin /php -v
148+ sapi/cli /php -v
159149
160- - name : Run basic tests
161- uses : vmactions/freebsd-vm@v1
162- with :
163- release : ' 13.3'
164- usesh : true
165- copyback : false
166- run : |
167- cd $GITHUB_WORKSPACE/php-src/ext/async
168-
169- export SKIP_IO_CAPTURE_TESTS=1
170- export CI_NO_IPV6=1
171- export STACK_LIMIT_DEFAULTS_CHECK=1
172-
173- /usr/local/bin/php ../../run-tests.php \
150+ echo "=== Running Basic Async Tests ==="
151+ sapi/cli/php run-tests.php \
174152 -P -q -j2 \
175153 -g FAIL,BORK,LEAK,XLEAK \
176154 --no-progress \
177155 --offline \
178156 --show-diff \
179157 --show-slow 4000 \
180158 --set-timeout 120 \
181- .
159+ ext/async/tests
182160
183- - name : Test OpCache
184- uses : vmactions/freebsd-vm@v1
185- with :
186- release : ' 13.3'
187- usesh : true
188- copyback : false
189- run : |
190- cd $GITHUB_WORKSPACE/php-src/ext/async
191-
192- export SKIP_IO_CAPTURE_TESTS=1
193- export CI_NO_IPV6=1
194- export STACK_LIMIT_DEFAULTS_CHECK=1
195-
196- /usr/local/bin/php ../../run-tests.php \
197- -d zend_extension=opcache.so \
198- -d opcache.enable_cli=1 \
161+ echo "=== Running Async Tests with OpCache ==="
162+ sapi/cli/php run-tests.php \
199163 -P -q -j2 \
200164 -g FAIL,BORK,LEAK,XLEAK \
201165 --no-progress \
202166 --offline \
203167 --show-diff \
204168 --show-slow 4000 \
205169 --set-timeout 120 \
206- .
207-
208- - name : Test Tracing JIT
209- uses : vmactions/freebsd-vm@v1
210- with :
211- release : ' 13.3'
212- usesh : true
213- copyback : false
214- run : |
215- cd $GITHUB_WORKSPACE/php-src/ext/async
216-
217- export SKIP_IO_CAPTURE_TESTS=1
218- export CI_NO_IPV6=1
219- export STACK_LIMIT_DEFAULTS_CHECK=1
220-
221- /usr/local/bin/php ../../run-tests.php \
222170 -d zend_extension=opcache.so \
223171 -d opcache.enable_cli=1 \
224- -d opcache.jit_buffer_size=64M \
225- -d opcache.jit=tracing \
172+ ext/async/tests
173+
174+ echo "=== Running Async Tests with JIT Tracing ==="
175+ sapi/cli/php run-tests.php \
226176 -P -q -j2 \
227177 -g FAIL,BORK,LEAK,XLEAK \
228178 --no-progress \
229179 --offline \
230180 --show-diff \
231181 --show-slow 4000 \
232182 --set-timeout 120 \
233- .
234-
235- - name : Test Function JIT
236- uses : vmactions/freebsd-vm@v1
237- with :
238- release : ' 13.3'
239- usesh : true
240- copyback : false
241- run : |
242- cd $GITHUB_WORKSPACE/php-src/ext/async
243-
244- export SKIP_IO_CAPTURE_TESTS=1
245- export CI_NO_IPV6=1
246- export STACK_LIMIT_DEFAULTS_CHECK=1
247-
248- /usr/local/bin/php ../../run-tests.php \
249183 -d zend_extension=opcache.so \
250184 -d opcache.enable_cli=1 \
251185 -d opcache.jit_buffer_size=64M \
252- -d opcache.jit=function \
186+ -d opcache.jit=tracing \
187+ ext/async/tests
188+
189+ echo "=== Running Async Tests with JIT Function ==="
190+ sapi/cli/php run-tests.php \
253191 -P -q -j2 \
254192 -g FAIL,BORK,LEAK,XLEAK \
255193 --no-progress \
256194 --offline \
257195 --show-diff \
258196 --show-slow 4000 \
259197 --set-timeout 120 \
260- .
198+ -d zend_extension=opcache.so \
199+ -d opcache.enable_cli=1 \
200+ -d opcache.jit_buffer_size=64M \
201+ -d opcache.jit=function \
202+ ext/async/tests
0 commit comments