Skip to content

Commit a0a72e8

Browse files
committed
Run tests against libxml >= 2.12
1 parent 154bb91 commit a0a72e8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
# Keys:
5252
# - custom_ini: Whether to run with specific custom ini settings to hit very specific
5353
# code conditions.
54+
55+
# Don't cancel in-progress matrix jobs
56+
fail-fast: false
5457
matrix:
5558
os: ['ubuntu-latest', 'windows-latest']
5659
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
@@ -93,6 +96,20 @@ jobs:
9396
- name: Checkout code
9497
uses: actions/checkout@v4
9598

99+
# A temporary solution
100+
- name: Install libxml2 >= 2.12 (PHP 8.1+ on linux only)
101+
if: ${{ matrix.os == 'ubuntu-latest' && contains(fromJSON('["8.1", "8.2", "8.3"]'), matrix.php) }}
102+
run: |
103+
sudo apt-get update
104+
sudo apt-get install -y wget build-essential
105+
wget https://download.gnome.org/sources/libxml2/2.12/libxml2-2.12.9.tar.xz
106+
tar -xf libxml2-2.12.9.tar.xz
107+
cd libxml2-2.12.9
108+
./configure --prefix=/usr/local
109+
make
110+
sudo make install
111+
sudo ldconfig
112+
96113
- name: Setup ini config
97114
id: set_ini
98115
shell: bash

0 commit comments

Comments
 (0)