Skip to content

Commit 158a5c7

Browse files
authored
Update build system (#65)
1 parent ca98ce9 commit 158a5c7

6 files changed

Lines changed: 11 additions & 2424 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
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'

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
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

712
COPY entrypoint.sh /entrypoint.sh
813

build.sh

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ then
99
PHP=$(which php 2>/dev/null)
1010
fi
1111

12-
# Sets the path to PHD from environment or use which to discover it
1312
if [ "$PHD" == "" ];
1413
then
15-
PHD=$(which phd 2>/dev/null)
14+
PHD="$PHP /phd/render.php"
1615
fi
1716

1817
# Sets the browser application from environment or falls back on open if it is found
@@ -28,21 +27,11 @@ then
2827
exit 1
2928
fi
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
4837
if [ "$BROWSER" != "" ];

style.css

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)