|
14 | 14 | - macos |
15 | 15 | - windows |
16 | 16 | - freebsd |
| 17 | + - openbsd |
17 | 18 | - solaris |
18 | 19 | - zos |
19 | 20 | - distcheck |
@@ -343,6 +344,63 @@ jobs: |
343 | 344 | ../maint/RunManifestTest install-dir ../maint/manifest-cmakeinstall-freebsd |
344 | 345 | ../maint/RunSymbolTest install-dir/lib/ ../maint/ |
345 | 346 |
|
| 347 | + openbsd: |
| 348 | + name: OpenBSD |
| 349 | + runs-on: ubuntu-latest |
| 350 | + if: | |
| 351 | + (github.event_name == 'workflow_dispatch' && (inputs.job_id == 'all' || inputs.job_id == 'openbsd')) || |
| 352 | + github.event_name == 'push' |
| 353 | + steps: |
| 354 | + - name: Checkout |
| 355 | + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 356 | + with: |
| 357 | + submodules: true |
| 358 | + |
| 359 | + - name: Prepare |
| 360 | + run: ./autogen.sh |
| 361 | + |
| 362 | + - name: Build & test |
| 363 | + uses: vmactions/openbsd-vm@1e7cc4fa7727646d3cf5921289b1f5c9d1a88f3c # v1.2.0 |
| 364 | + with: |
| 365 | + envs: 'CFLAGS_GCC_STYLE CMAKE_FLAGS' |
| 366 | + usesh: true |
| 367 | + prepare: | |
| 368 | + set -e |
| 369 | + pkg_add cmake |
| 370 | +
|
| 371 | + run: | |
| 372 | + set -e |
| 373 | +
|
| 374 | + export MALLOC_OPTIONS="USRJGFC>>" |
| 375 | + EXTRA_CFLAGS="-DSLJIT_WX_EXECUTABLE_ALLOCATOR" |
| 376 | +
|
| 377 | + cp -rp . ../build-autoconf |
| 378 | + cp -rp . ../build-cmake |
| 379 | +
|
| 380 | + echo "== Autoconf ==" |
| 381 | + cd ../build-autoconf |
| 382 | +
|
| 383 | + ./configure CFLAGS="$CFLAGS_GCC_STYLE $EXTRA_CFLAGS" --enable-jit --enable-pcre2-16 --enable-pcre2-32 --enable-Werror |
| 384 | + make -j3 |
| 385 | + (make check; rc=$?; for i in test-suite.log Run*Test.log pcre2*_test.log; do echo "== $i =="; cat $i; done; exit $rc) |
| 386 | +
|
| 387 | + make install "DESTDIR=`pwd`/install-dir" |
| 388 | + # I don't really know enough about OpenBSD to say whether the unusually-numbered .so files |
| 389 | + # with no symlinks are correct or not. |
| 390 | + # maint/RunManifestTest install-dir maint/manifest-makeinstall-openbsd |
| 391 | + # maint/RunSymbolTest install-dir/usr/local/lib/ maint/ |
| 392 | +
|
| 393 | + echo "== CMake ==" |
| 394 | + cd ../build-cmake |
| 395 | +
|
| 396 | + cmake $CMAKE_FLAGS -DPCRE2_SUPPORT_JIT=ON -DPCRE2_BUILD_PCRE2_16=ON -DPCRE2_BUILD_PCRE2_32=ON -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=ON -DPCRE2_DEBUG=ON -DCMAKE_C_FLAGS="$CFLAGS_GCC_STYLE $EXTRA_CFLAGS" -DCMAKE_COMPILE_WARNING_AS_ERROR=ON -DCMAKE_BUILD_TYPE=Release -B build |
| 397 | + cd build |
| 398 | + make -j3 |
| 399 | + ctest -j3 --output-on-failure && (cat ./Testing/Temporary/LastTest.log || true) |
| 400 | + cmake --install . --prefix install-dir |
| 401 | + # ../maint/RunManifestTest install-dir ../maint/manifest-cmakeinstall-openbsd |
| 402 | + # ../maint/RunSymbolTest install-dir/lib/ ../maint/ |
| 403 | +
|
346 | 404 | solaris: |
347 | 405 | name: Solaris |
348 | 406 | runs-on: ubuntu-latest |
|
0 commit comments