Skip to content

Commit 490ca55

Browse files
asisptsjrfnl
authored andcommitted
GH Actions/tests: run tests against libxml >= 2.12
1 parent 9c6ad66 commit 490ca55

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,21 @@ jobs:
9393
- name: Checkout code
9494
uses: actions/checkout@v4
9595

96+
# This is a temporary solution.
97+
# Once ubuntu-latest includes the latest libxml2 version, this step can be removed.
98+
- name: Install latest libxml2 on PHP 8.4 (linux only)
99+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.php == '8.4' }}
100+
run: |
101+
sudo apt-get update
102+
sudo apt-get install -y wget build-essential
103+
wget https://download.gnome.org/sources/libxml2/2.12/libxml2-2.12.9.tar.xz
104+
tar -xf libxml2-2.12.9.tar.xz
105+
cd libxml2-2.12.9
106+
./configure --prefix=/usr/local
107+
make
108+
sudo make install
109+
sudo ldconfig
110+
96111
- name: Setup ini config
97112
id: set_ini
98113
shell: bash

0 commit comments

Comments
 (0)