Skip to content

Commit 33e794f

Browse files
asisptsjrfnl
authored andcommitted
GH Actions/tests: run tests against libxml >= 2.12
1 parent 8ad19ff commit 33e794f

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
@@ -82,6 +82,21 @@ jobs:
8282
- name: Checkout code
8383
uses: actions/checkout@v4
8484

85+
# This is a temporary solution.
86+
# Once ubuntu-latest includes the latest libxml2 version, this step can be removed.
87+
- name: Install latest libxml2 on PHP 8.4 (linux only)
88+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.php == '8.4' }}
89+
run: |
90+
sudo apt-get update
91+
sudo apt-get install -y wget build-essential
92+
wget https://download.gnome.org/sources/libxml2/2.12/libxml2-2.12.9.tar.xz
93+
tar -xf libxml2-2.12.9.tar.xz
94+
cd libxml2-2.12.9
95+
./configure --prefix=/usr/local
96+
make
97+
sudo make install
98+
sudo ldconfig
99+
85100
- name: Setup ini config
86101
id: set_ini
87102
shell: bash

0 commit comments

Comments
 (0)