Skip to content

Commit ce1af74

Browse files
committed
Move FreeBSD build to GitHub actions with QEMU
1 parent 85e23db commit ce1af74

File tree

4 files changed

+120
-28
lines changed

4 files changed

+120
-28
lines changed

.cirrus.yml

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

.github/actions/freebsd/action.yml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: FreeBSD
2+
runs:
3+
using: composite
4+
steps:
5+
- name: FreeBSD
6+
uses: vmactions/freebsd-vm@v1
7+
with:
8+
release: '13.3'
9+
usesh: true
10+
# Temporarily disable sqlite, as FreeBSD ships it with disabled double quotes. We'll need to fix our tests.
11+
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269889
12+
prepare: |
13+
cd $GITHUB_WORKSPACE
14+
15+
kldload accf_http
16+
pkg install -y \
17+
autoconf \
18+
bison \
19+
gmake \
20+
re2c \
21+
icu \
22+
libiconv \
23+
png \
24+
freetype2 \
25+
enchant2 \
26+
bzip2 \
27+
t1lib \
28+
gmp \
29+
tidyp \
30+
libsodium \
31+
libzip \
32+
libxml2 \
33+
libxslt \
34+
openssl \
35+
oniguruma \
36+
pkgconf \
37+
webp \
38+
libavif \
39+
`#sqlite3` \
40+
curl
41+
42+
./buildconf -f
43+
./configure \
44+
--prefix=/usr/local \
45+
--enable-debug \
46+
--enable-option-checking=fatal \
47+
--enable-fpm \
48+
`#--with-pdo-sqlite` \
49+
--without-sqlite3 \
50+
--without-pdo-sqlite \
51+
--without-pear \
52+
--with-bz2 \
53+
--with-avif \
54+
--with-jpeg \
55+
--with-webp \
56+
--with-freetype \
57+
--enable-gd \
58+
--enable-exif \
59+
--with-zip \
60+
--with-zlib \
61+
--enable-soap \
62+
--enable-xmlreader \
63+
--with-xsl \
64+
--with-libxml \
65+
--enable-shmop \
66+
--enable-pcntl \
67+
--enable-mbstring \
68+
--with-curl \
69+
--enable-sockets \
70+
--with-openssl \
71+
--with-iconv=/usr/local \
72+
--enable-bcmath \
73+
--enable-calendar \
74+
--enable-ftp \
75+
--with-ffi \
76+
--enable-zend-test \
77+
--enable-dl-test=shared \
78+
--enable-intl \
79+
--with-mhash \
80+
--with-sodium \
81+
--enable-werror \
82+
--with-config-file-path=/etc \
83+
--with-config-file-scan-dir=/etc/php.d
84+
gmake -j2
85+
mkdir /etc/php.d
86+
gmake install
87+
echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
88+
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
89+
echo opcache.preload_user=root >> /etc/php.d/opcache.ini
90+
run: |
91+
cd $GITHUB_WORKSPACE
92+
93+
export SKIP_IO_CAPTURE_TESTS=1
94+
export CI_NO_IPV6=1
95+
export STACK_LIMIT_DEFAULTS_CHECK=1
96+
sapi/cli/php run-tests.php \
97+
-P -q -j2 \
98+
-g FAIL,BORK,LEAK,XLEAK \
99+
--no-progress \
100+
--offline \
101+
--show-diff \
102+
--show-slow 1000 \
103+
--set-timeout 120 \
104+
-d zend_extension=opcache.so

.github/workflows/nightly.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,3 +979,11 @@ jobs:
979979
run: .github/scripts/windows/build.bat
980980
- name: Test
981981
run: .github/scripts/windows/test.bat
982+
FREEBSD:
983+
name: FREEBSD
984+
runs-on: ubuntu-latest
985+
steps:
986+
- name: git checkout
987+
uses: actions/checkout@v4
988+
- name: FreeBSD
989+
uses: ./.github/actions/freebsd

.github/workflows/push.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,11 @@ jobs:
170170
run: .github/scripts/windows/build.bat
171171
- name: Test
172172
run: .github/scripts/windows/test.bat
173+
FREEBSD:
174+
name: FREEBSD
175+
runs-on: ubuntu-latest
176+
steps:
177+
- name: git checkout
178+
uses: actions/checkout@v4
179+
- name: FreeBSD
180+
uses: ./.github/actions/freebsd

0 commit comments

Comments
 (0)