Skip to content

Commit 37b6689

Browse files
authored
Overhaul (#23)
* third_party: fix git status dirty state * Docker: use debian bookworm (12) -> trixie(13) * CI: use debian bookworm (12) -> trixie (13) * CI: skip 8.1 strict ci
1 parent c9ad9f1 commit 37b6689

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
platform: ['linux/amd64', 'linux/arm64/v8', 'linux/s390x']
1919
version: ['8.1', '8.2', '8.3', '8.4']
2020
type: ['cli', 'zts']
21-
distro: ['bookworm', 'alpine']
21+
distro: ['trixie', 'alpine']
2222
steps:
2323
- name: Checkout
2424
uses: actions/checkout@v5
@@ -45,14 +45,14 @@ jobs:
4545
run: |
4646
docker compose run --rm shell pskel test valgrind
4747
- name: Test extension with LLVM Sanitizer (MemorySanitizer)
48-
if: matrix.platform == 'linux/amd64' && matrix.distro != 'alpine'
48+
if: matrix.platform == 'linux/amd64' && matrix.distro != 'alpine' && matrix.version != '8.1'
4949
run: |
5050
docker compose run --rm shell pskel test msan
5151
- name: Test extension with LLVM Sanitizer (AddressSanitizer)
52-
if: matrix.platform == 'linux/amd64' && matrix.distro != 'alpine'
52+
if: matrix.platform == 'linux/amd64' && matrix.distro != 'alpine' && matrix.version != '8.1'
5353
run: |
5454
docker compose run --rm shell pskel test asan
5555
- name: Test extension with LLVM Sanitizer (UndefinedBehaviorSanitizer)
56-
if: matrix.platform == 'linux/amd64' && matrix.distro != 'alpine'
56+
if: matrix.platform == 'linux/amd64' && matrix.distro != 'alpine' && matrix.version != '8.1'
5757
run: |
5858
docker compose run --rm shell pskel test ubsan

.github/workflows/coverage.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
matrix:
1919
version: ['8.4']
2020
type: ['cli', 'zts']
21-
distro: ['bookworm']
21+
distro: ['trixie']
2222
outputs:
2323
matrix: ${{ toJson(matrix) }}
2424
steps:
@@ -52,6 +52,7 @@ jobs:
5252
sudo apt-get install -y "lcov"
5353
LCOV_FILES="$(find . -name "lcov.info")"
5454
CMD="$(which "lcov")"
55+
CMD+=" --ignore-errors format"
5556
for LCOV_FILE in ${LCOV_FILES}; do
5657
CMD+=" -a ${LCOV_FILE}"
5758
done

.gitmodules

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
[submodule "ext/third_party/timelib"]
22
path = ext/third_party/timelib
33
url = https://github.com/derickr/timelib.git
4-
[submodule "derickr/timelib"]
5-
path = ext/third_party/timelib
6-
url = https://github.com/derickr/timelib.git
4+
ignore = dirty

Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG PLATFORM=${BUILDPLATFORM:-linux/amd64}
22
ARG IMAGE=php
3-
ARG TAG=8.4-cli-bookworm
3+
ARG TAG=8.4-cli-trixie
44

55
FROM --platform=${PLATFORM} ${IMAGE}:${TAG}
66

@@ -11,21 +11,20 @@ ENV LC_ALL="C"
1111

1212
RUN docker-php-source extract \
1313
&& if test -f "/etc/debian_version"; then \
14-
echo "deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm main" > "/etc/apt/sources.list.d/llvm.list" \
15-
&& echo "deb-src http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm main" >> "/etc/apt/sources.list.d/llvm.list" \
16-
&& curl -fsSL "https://apt.llvm.org/llvm-snapshot.gpg.key" -o "/etc/apt/trusted.gpg.d/apt.llvm.org.asc" \
17-
&& apt-get update \
14+
apt-get update \
1815
&& DEBIAN_FRONTEND="noninteractive" apt-get install -y "bison" "re2c" "zlib1g-dev" "libsqlite3-dev" "libxml2-dev" \
1916
"autoconf" "pkg-config" "make" "gcc" "valgrind" "rsync" "git" "ssh" \
20-
"clang-19" \
17+
"clang" \
2118
"lcov" "gzip" \
19+
"vim" \
2220
&& update-alternatives --install "/usr/bin/clang" clang "/usr/bin/clang-19" 100 \
2321
&& update-alternatives --install "/usr/bin/clang++" clang++ "/usr/bin/clang++-19" 100; \
2422
else \
2523
apk add --no-cache "bison" "zlib-dev" "sqlite-dev" "libxml2-dev" "linux-headers" \
2624
"autoconf" "pkgconfig" "make" "gcc" "g++" "valgrind" "valgrind-dev" \
2725
"musl-dev" "rsync" "git" "openssh" \
28-
"patch" "lcov" "gzip"; \
26+
"patch" "lcov" "gzip" \
27+
"vim"; \
2928
fi
3029

3130
COPY ./pskel.sh /usr/local/bin/pskel

0 commit comments

Comments
 (0)