File tree Expand file tree Collapse file tree 5 files changed +45
-2
lines changed Expand file tree Collapse file tree 5 files changed +45
-2
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
tags :
5
5
- ' [0-9]+.[0-9]+.[0-9]+'
6
+ workflow_dispatch :
6
7
jobs :
7
8
Ubuntu-2204 :
8
9
strategy :
9
10
matrix :
10
11
runs-on : ['ubuntu-22.04', 'ubuntu-22.04-arm']
12
+ build : ['ubuntu2204', 'ubuntu2204_sury84']
11
13
runs-on : ${{ matrix.runs-on }}
12
14
timeout-minutes : 60
13
15
steps :
14
16
- name : Checkout
15
17
uses : actions/checkout@v5
18
+ with :
19
+ fetch-depth : 1
16
20
- name : Inspections
17
21
id : inspections
18
22
run : echo "arch=$(uname -m)" >> $GITHUB_OUTPUT
19
23
- name : Build container
20
24
run : |
21
- docker build -t"builder" -f"./build/ubuntu2204 /Dockerfile" .
25
+ docker build -t"builder" -f"./build/${{ matrix.build }} /Dockerfile" .
22
26
- name : Build extension with container
23
27
run : |
24
28
mkdir "artifacts"
25
29
docker run --env VERSION="${{ github.ref_name }}" --rm -v"$(pwd)/artifacts:/tmp/artifacts" -i "builder"
26
30
- name : Upload .deb packages
27
31
uses : actions/upload-artifact@v4
28
32
with :
29
- name : ubuntu2204_ ${{ steps.inspections.outputs.arch }}
33
+ name : ${{ matrix.build }}_ ${{ steps.inspections.outputs.arch }}
30
34
path : artifacts/
Original file line number Diff line number Diff line change
1
+ ARG PLATFORM=${BUILDPLATFORM:-linux/amd64}
2
+
3
+ FROM --platform=${PLATFORM} ubuntu:22.04
4
+
5
+ ENV DEBIAN_FRONTEND="noninteractive"
6
+
7
+ RUN apt-get update && \
8
+ apt-get install -y \
9
+ "software-properties-common" && \
10
+ add-apt-repository ppa:ondrej/php -y && \
11
+ apt-get update && \
12
+ apt-get install -y \
13
+ "php8.4" "php8.4-dev" "checkinstall"
14
+
15
+ COPY ./ext /tmp/ext
16
+
17
+ COPY ./build/ubuntu2204_sury84/build.sh /usr/bin/build
18
+
19
+ ENTRYPOINT ["/usr/bin/build" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/sh -eux
2
+
3
+ cd " /tmp/ext"
4
+ echo " COLOPL PHP backwards compatibility extension for sury PHP 8.4" > " description-pak"
5
+ phpize8.4
6
+ ./configure --with-php-config=" $( which " php-config8.4" ) "
7
+ make -j" $( nproc) "
8
+ TEST_PHP_ARGS=" --show-diff -q" make test
9
+ checkinstall \
10
+ --pkgname=" php8.4-colopl-bc" \
11
+ --pkglicense=" PHP-3.01" \
12
+ --pkgversion=" ${VERSION} " \
13
+ --pkggroup=" php8.4" \
14
+ --maintainer=
" [email protected] " \
15
+ --requires=" php8.4-common" \
16
+ --stripso=" yes" \
17
+ --pakdir=" /tmp/artifacts" \
18
+ --nodoc
19
+ cd -
Original file line number Diff line number Diff line change
1
+ Package created with checkinstall 1.6.3
You can’t perform that action at this time.
0 commit comments