Skip to content

Commit c18af9d

Browse files
committed
+ new builds2
1 parent 5e7bd0c commit c18af9d

File tree

2 files changed

+34
-6
lines changed

2 files changed

+34
-6
lines changed

.github/workflows/build-freebsd.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,32 @@ jobs:
6868
webp \
6969
libavif \
7070
curl \
71-
libuv \
7271
cmake
7372
73+
# Check LibUV version and build from source if needed
74+
echo "=== Checking LibUV version ==="
75+
LIBUV_VERSION=$(pkg search -q libuv | head -1 | cut -d- -f2)
76+
echo "Available LibUV package version: $LIBUV_VERSION"
77+
78+
# FreeBSD usually has newer LibUV, but let's build from source to be sure
79+
echo "=== Building LibUV from source ==="
80+
fetch https://github.com/libuv/libuv/archive/v1.48.0.tar.gz
81+
tar -xzf v1.48.0.tar.gz
82+
cd libuv-1.48.0
83+
mkdir build
84+
cd build
85+
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
86+
gmake -j2
87+
gmake install
88+
ldconfig
89+
cd ../..
90+
7491
echo "=== System Info ==="
7592
echo "FreeBSD version:"
7693
freebsd-version
7794
echo "CPU info:"
7895
sysctl hw.model hw.ncpu hw.physmem
79-
echo "LibUV version:"
80-
pkg info libuv || echo "LibUV package info not available"
96+
echo "LibUV version (built from source): 1.48.0"
8197
8298
# Configure PHP with async extension
8399
./buildconf -f

.github/workflows/build-linux.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
zts: false
2323

2424
name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || ''}}"
25-
runs-on: ubuntu-${{ matrix.asan && '20.04' || '22.04' }}
25+
runs-on: ubuntu-22.04
2626
timeout-minutes: ${{ matrix.asan && 360 || 60 }}
2727

2828
services:
@@ -100,8 +100,20 @@ jobs:
100100
libxslt1-dev \
101101
libicu-dev
102102
103-
# LibUV
104-
sudo apt-get install -y libuv1-dev cmake
103+
# Build LibUV from source (need >= 1.44.0)
104+
sudo apt-get install -y cmake ninja-build
105+
106+
# Download and build LibUV 1.48.0
107+
wget https://github.com/libuv/libuv/archive/v1.48.0.tar.gz
108+
tar -xzf v1.48.0.tar.gz
109+
cd libuv-1.48.0
110+
mkdir build
111+
cd build
112+
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
113+
ninja
114+
sudo ninja install
115+
sudo ldconfig
116+
cd ../..
105117
106118
# ASAN dependencies if needed
107119
if [ "${{ matrix.asan }}" = "true" ]; then

0 commit comments

Comments
 (0)