mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Add pre-built test
This commit is contained in:
parent
24aac06051
commit
cfda286532
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -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'
|
||||
|
||||
@ -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 => '',
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user