Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update php-src-8.4.dockerfile and add php-src-master.dockerfile for GitHub Actions #106

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/php-src-8.4.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
libfreetype6-dev \
&& apt -y clean \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 --branch master https://github.com/php/php-src.git
RUN git clone --depth 1 --branch PHP-8.4 https://github.com/php/php-src.git
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
COPY composer.json /composer.json
COPY composer.lock /composer.lock
Expand Down
76 changes: 76 additions & 0 deletions .github/workflows/php-src-master.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
FROM --platform=linux/amd64 ubuntu:22.04
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt update && apt install -y --no-install-recommends \
software-properties-common \
ca-certificates \
wget \
tar \
git \
pkg-config build-essential \
libssl-dev \
autoconf \
gcc \
make \
curl \
unzip \
bison \
re2c \
locales \
ldap-utils \
openssl \
slapd \
language-pack-de \
libgmp-dev \
libicu-dev \
libtidy-dev \
libenchant-2-dev \
libbz2-dev \
libsasl2-dev \
libxpm-dev \
libzip-dev \
libsqlite3-dev \
libsqlite3-mod-spatialite \
libwebp-dev \
libonig-dev \
libcurl4-openssl-dev \
libxml2-dev \
libxslt1-dev \
libpq-dev \
libreadline-dev \
libldap2-dev \
libsodium-dev \
libargon2-0-dev \
libmm-dev \
libsnmp-dev \
postgresql \
postgresql-contrib \
snmpd \
snmp-mibs-downloader \
freetds-dev \
unixodbc-dev \
llvm \
clang \
dovecot-core \
dovecot-pop3d \
dovecot-imapd \
sendmail \
firebird-dev \
liblmdb-dev \
libtokyocabinet-dev \
libdb-dev \
libqdbm-dev \
libjpeg-dev \
libpng-dev \
libfreetype6-dev \
&& apt -y clean \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 --branch master https://github.com/php/php-src.git
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
COPY composer.json /composer.json
COPY composer.lock /composer.lock
COPY src /src
COPY test /test
RUN curl -sS https://getcomposer.org/installer | php; mv composer.phar /usr/local/bin/composer; chmod +x /usr/local/bin/composer
RUN cd / && composer update
#RUN composer test
CMD [ "/sbin/init" ]
5 changes: 3 additions & 2 deletions .github/workflows/php-src.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Test with php-src

on:
push:
pull_request:
workflow_dispatch:
schedule:
Expand All @@ -12,9 +13,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.1', '8.2', '8.3', '8.4' ]
php: [ '8.1', '8.2', '8.3', '8.4', 'master' ]
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Run docker compose
shell: bash
run: |
Expand Down
Loading