Skip to content

Commit e902c12

Browse files
committed
Move FreeBSD build to GitHub actions with QEMU
1 parent 1922f41 commit e902c12

File tree

1 file changed

+43
-5
lines changed

1 file changed

+43
-5
lines changed

.github/workflows/push.yml

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ env:
4141
CXX: ccache g++
4242
jobs:
4343
LINUX_X64:
44-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
44+
if: false
4545
services:
4646
mysql:
4747
image: mysql:8.3
@@ -137,7 +137,7 @@ jobs:
137137
if: ${{ !matrix.asan }}
138138
uses: ./.github/actions/verify-generated-files
139139
LINUX_X32:
140-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
140+
if: false
141141
name: LINUX_X32_DEBUG_ZTS
142142
runs-on: ubuntu-latest
143143
timeout-minutes: 50
@@ -183,7 +183,7 @@ jobs:
183183
-d zend_extension=opcache.so
184184
-d opcache.enable_cli=1
185185
MACOS_DEBUG_NTS:
186-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
186+
if: false
187187
strategy:
188188
fail-fast: false
189189
matrix:
@@ -226,7 +226,7 @@ jobs:
226226
- name: Verify generated files are up to date
227227
uses: ./.github/actions/verify-generated-files
228228
WINDOWS:
229-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
229+
if: false
230230
name: WINDOWS_X64_ZTS
231231
runs-on: windows-2022
232232
timeout-minutes: 50
@@ -254,7 +254,7 @@ jobs:
254254
run: .github/scripts/windows/test.bat
255255
BENCHMARKING:
256256
name: BENCHMARKING
257-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
257+
if: false
258258
runs-on: ubuntu-24.04
259259
timeout-minutes: 50
260260
steps:
@@ -359,3 +359,41 @@ jobs:
359359
name: profiles
360360
path: ${{ github.workspace }}/benchmark/profiles
361361
retention-days: 30
362+
FREEBSD:
363+
name: FREEBSD
364+
runs-on: ubuntu-latest
365+
steps:
366+
# - name: git checkout
367+
# uses: actions/checkout@v4
368+
- name: QEMU
369+
uses: vmactions/freebsd-vm@v1
370+
with:
371+
release: '13.3'
372+
usesh: true
373+
prepare: |
374+
pwd
375+
ls -lah
376+
whoami
377+
env
378+
freebsd-version
379+
sysctl hw.model
380+
sysctl hw.ncpu
381+
sysctl hw.physmem
382+
sysctl hw.usermem
383+
384+
#kldload accf_http
385+
#pkg install -y autoconf bison gmake re2c icu libiconv png freetype2 enchant2 bzip2 t1lib gmp tidyp libsodium libzip libxml2 libxslt openssl oniguruma pkgconf webp libavif
386+
387+
#./buildconf -f
388+
#./configure --prefix=/usr/local --enable-debug --enable-option-checking=fatal --enable-fpm --with-pdo-sqlite --without-pear --with-bz2 --with-avif --with-jpeg --with-webp --with-freetype --enable-gd --enable-exif --with-zip --with-zlib --enable-soap --enable-xmlreader --with-xsl --with-libxml --enable-shmop --enable-pcntl --enable-mbstring --with-curl --enable-sockets --with-openssl --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-ftp --with-ffi --enable-zend-test --enable-dl-test=shared --enable-intl --with-mhash --with-sodium --enable-werror --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d
389+
#gmake -j2
390+
#mkdir /etc/php.d
391+
#gmake install
392+
#echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
393+
#echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
394+
#echo opcache.preload_user=root >> /etc/php.d/opcache.ini
395+
run: |
396+
#export SKIP_IO_CAPTURE_TESTS=1
397+
#export CI_NO_IPV6=1
398+
#export STACK_LIMIT_DEFAULTS_CHECK=1
399+
#sapi/cli/php run-tests.php -P -q -j2 -g FAIL,BORK,LEAK,XLEAK --no-progress --offline --show-diff --show-slow 1000 --set-timeout 120 -d zend_extension=opcache.so

0 commit comments

Comments
 (0)