File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88jobs :
99 build :
1010 name : ' Build'
11- runs-on : ' ubuntu-20 .04'
11+ runs-on : ' ubuntu-24 .04'
1212 steps :
1313 - name : ' Checkout'
1414 uses : ' actions/checkout@v2'
Original file line number Diff line number Diff line change 1- FROM php:7.3
1+ FROM php:8.5
22
3- RUN apt-get install bash
3+ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install bash git
44
5- RUN pear install doc.php.net/PhD && pear install doc.php.net/PhD_PHP
5+ RUN mkdir phd \
6+ && cd phd \
7+ && git init \
8+ && git remote add origin https://github.com/php/phd.git \
9+ && git fetch --depth 1 e546e7b8d8f4a93c4cdf25ac30070f5ea010b0d7 \
10+ && git checkout FETCH_HEAD
611
712COPY entrypoint.sh /entrypoint.sh
813
Original file line number Diff line number Diff line change 99 PHP=$( which php 2> /dev/null)
1010fi
1111
12- # Sets the path to PHD from environment or use which to discover it
1312if [ " $PHD " == " " ];
1413then
15- PHD=$( which phd 2> /dev/null )
14+ PHD=" $PHP / phd/render.php "
1615fi
1716
1817# Sets the browser application from environment or falls back on open if it is found
2827 exit 1
2928fi
3029
31- # Test for executability of PHD
32- if [ ! -x " $PHD " ];
33- then
34- echo " Cannot execute $PHD , is PHD installed ?"
35- exit 2
36- fi
37-
3830# Configure Documentation
3931$PHP doc-base/configure.php --enable-xml-details --with-partial=book.rdkafka
4032
4133# Generate Documentation
42- $PHD --docbook doc-base/.manual.book.rdkafka.xml --package PHP --format xhtml \
43- --css theme-base.css \
44- --css theme-medium.css \
45- --css style.css
34+ $PHD --docbook doc-base/.manual.book.rdkafka.xml --package PHP --format xhtml
4635
4736# Opens a browser if it is appropriate to do so
4837if [ " $BROWSER " != " " ];
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments