Skip to content

Commit

Permalink
Merge pull request #106 from matsuo/add-and-update-dockerfile-for-git…
Browse files Browse the repository at this point in the history
…hub-actions

Update php-src-8.4.dockerfile and add php-src-master.dockerfile for GitHub Actions
  • Loading branch information
msyk authored Oct 10, 2024
2 parents a9df157 + e1d7e6e commit 1735c22
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 3 deletions.
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

0 comments on commit 1735c22

Please sign in to comment.