Skip to content

Commit d4cb6c3

Browse files
rudi-augmentclaude
andcommitted
ci: add Arch Linux PHPT job
Tests against Arch's rolling-release PHP package to catch issues with the latest system libraries and compiler versions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9da4e87 commit d4cb6c3

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ jobs:
3939
- name: Test
4040
run: docker run --rm ext-ds
4141

42+
phpt-arch:
43+
name: PHPT - Arch Linux
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
48+
- name: Build
49+
run: docker build -f Dockerfile.arch -t ext-ds .
50+
51+
- name: Test
52+
run: docker run --rm ext-ds
53+
4254
phpunit:
4355
name: PHPUnit - PHP ${{ matrix.php }}
4456
runs-on: ubuntu-latest

Dockerfile.arch

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM archlinux:latest
2+
3+
RUN pacman -Syu --noconfirm \
4+
php \
5+
autoconf \
6+
gcc \
7+
make
8+
9+
WORKDIR /ext-ds
10+
11+
COPY . .
12+
13+
RUN phpize --clean > /dev/null 2>&1 || true \
14+
&& phpize \
15+
&& ./configure \
16+
&& make -j$(nproc) \
17+
&& make install
18+
19+
CMD php run-tests.php \
20+
-d extension=ds.so \
21+
-n -q --show-diff \
22+
tests/

0 commit comments

Comments
 (0)