diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9f799734..4816b076 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -193,7 +193,7 @@ jobs: - name: "Run Build Tests (download)" run: | - bin/spc download --for-extensions="$(php src/globals/test-extensions.php extensions)" --for-libs="$(php src/globals/test-extensions.php libs)" --with-php=${{ matrix.php }} --ignore-cache-sources=php-src --debug --retry=5 --shallow-clone + bin/spc download --for-extensions="$(php src/globals/test-extensions.php extensions)" --for-libs="$(php src/globals/test-extensions.php libs)" --with-php=${{ matrix.php }} --ignore-cache-sources=php-src --debug --retry=5 --shallow-clone $(php src/globals/test-extensions.php prefer_pre_built) - name: "Download pre-built libraries for pkg-config" if: matrix.os != 'windows-latest' diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index e54f5e5e..7871d623 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -21,6 +21,8 @@ $no_strip = false; $upx = true; +$prefer_pre_built = true; + // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). $extensions = match (PHP_OS_FAMILY) { 'Linux', 'Darwin' => '', @@ -86,5 +88,6 @@ echo match ($argv[1]) { 'zts' => $zts ? '--enable-zts' : '', 'no_strip' => $no_strip ? '--no-strip' : '', 'upx' => $upx ? '--with-upx-pack' : '', + 'prefer_pre_built' => $prefer_pre_built ? '--prefer-pre-built' : '', default => '', };