Fix prefer-stable negative result in ghtar (#500)

* Fix prefer-stable got opposite result

* Add swoole tests and remove irrelevant tests
This commit is contained in:
Jerry Ma 2024-07-05 14:35:51 +08:00 committed by GitHub
parent 8d9f7be051
commit 29cd50206c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ class Downloader
retry: intval(getenv('SPC_RETRY_TIME') ? getenv('SPC_RETRY_TIME') : 0)
), true);
if (($source['prefer-stable'] ?? false) === true) {
if (($source['prefer-stable'] ?? false) === false) {
$url = $data[0]['tarball_url'];
} else {
$id = 0;

View File

@ -19,8 +19,8 @@ $upx = 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' => 'sockets,yaml',
'Windows' => 'mbstring,pdo_sqlite,mbregex,bz2,sqlsrv,pdo_sqlsrv,yaml,zip,rar,apcu,swow',
'Linux', 'Darwin' => 'sockets,yaml,swoole',
'Windows' => 'mbstring,pdo_sqlite,mbregex,bz2,sqlsrv,pdo_sqlsrv,yaml',
};
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).