Skip to content

Commit c290f8c

Browse files
authored
Merge pull request msyk#129 from matsuo/add-and-update-dockerfile-for-github-actions
Add php-src-8.5.dockerfile and update php-src-master.dockerfile for GitHub Actions
2 parents 72f926d + 28baa00 commit c290f8c

File tree

2 files changed

+80
-1
lines changed

2 files changed

+80
-1
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
FROM --platform=linux/amd64 ubuntu:22.04
2+
RUN export DEBIAN_FRONTEND=noninteractive \
3+
&& apt update && apt install -y --no-install-recommends \
4+
software-properties-common \
5+
ca-certificates \
6+
wget \
7+
tar \
8+
git \
9+
pkg-config build-essential \
10+
libssl-dev \
11+
autoconf \
12+
gcc \
13+
make \
14+
curl \
15+
unzip \
16+
bison \
17+
re2c \
18+
locales \
19+
ldap-utils \
20+
openssl \
21+
slapd \
22+
language-pack-de \
23+
libgmp-dev \
24+
libicu-dev \
25+
libtidy-dev \
26+
libenchant-2-dev \
27+
libbz2-dev \
28+
libsasl2-dev \
29+
libxpm-dev \
30+
libzip-dev \
31+
libsqlite3-dev \
32+
libsqlite3-mod-spatialite \
33+
libwebp-dev \
34+
libonig-dev \
35+
libcurl4-openssl-dev \
36+
libxml2-dev \
37+
libxslt1-dev \
38+
libpq-dev \
39+
libreadline-dev \
40+
libldap2-dev \
41+
libsodium-dev \
42+
libargon2-0-dev \
43+
libmm-dev \
44+
libsnmp-dev \
45+
postgresql \
46+
postgresql-contrib \
47+
snmpd \
48+
snmp-mibs-downloader \
49+
freetds-dev \
50+
unixodbc-dev \
51+
llvm \
52+
clang \
53+
dovecot-core \
54+
dovecot-pop3d \
55+
dovecot-imapd \
56+
sendmail \
57+
firebird-dev \
58+
liblmdb-dev \
59+
libtokyocabinet-dev \
60+
libdb-dev \
61+
libqdbm-dev \
62+
libjpeg-dev \
63+
libpng-dev \
64+
libfreetype6-dev \
65+
&& apt -y clean \
66+
&& rm -rf /var/lib/apt/lists/*
67+
RUN git clone --depth 1 --branch PHP-8.5 https://github.com/php/php-src.git
68+
RUN cd php-src; export CC=clang; export CXX=clang++; export CFLAGS="-DZEND_TRACK_ARENA_ALLOC"; ./buildconf --force; ./configure --enable-debug --enable-mbstring --with-openssl --with-curl; make -j$(/usr/bin/nproc); make TEST_PHP_ARGS=-j$(/usr/bin/nproc) test; make install
69+
COPY composer.json /composer.json
70+
COPY composer.lock /composer.lock
71+
COPY src /src
72+
COPY test /test
73+
RUN curl -sS https://getcomposer.org/installer | php; mv composer.phar /usr/local/bin/composer; chmod +x /usr/local/bin/composer
74+
RUN cd / && composer update
75+
#RUN composer test
76+
CMD [ "/sbin/init" ]

.github/workflows/php-src.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Test with php-src
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
pull_request:
@@ -13,7 +16,7 @@ jobs:
1316
runs-on: ubuntu-latest
1417
strategy:
1518
matrix:
16-
php: [ '8.1', '8.2', '8.3', '8.4', 'master' ]
19+
php: [ '8.1', '8.2', '8.3', '8.4', '8.5', 'master' ]
1720
steps:
1821
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1922
- name: Run docker compose

0 commit comments

Comments
 (0)