Add ignore musl for phpunit test

This commit is contained in:
crazywhalecc 2024-10-03 10:48:22 +08:00 committed by Jerry Ma
parent dc9d6703bc
commit 7325368a4f
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ jobs:
- name: "Run PHPUnit Tests"
run: |
vendor/bin/phpunit tests/ --no-coverage
SPC_NO_MUSL_PATH=yes vendor/bin/phpunit tests/ --no-coverage
define-matrix:
name: "Define Matrix"

View File

@ -35,7 +35,7 @@ class LinuxBuilder extends UnixBuilderBase
GlobalEnvManager::init($this);
if (str_ends_with(getenv('CC'), 'linux-musl-gcc') && !file_exists("/usr/local/musl/bin/{$arch}-linux-musl-gcc")) {
if (str_ends_with(getenv('CC'), 'linux-musl-gcc') && !file_exists("/usr/local/musl/bin/{$arch}-linux-musl-gcc") && (getenv('SPC_NO_MUSL_PATH') !== 'yes')) {
throw new WrongUsageException('musl-cross-make not installed, please install it first. (You can use `doctor` command to install it)');
}