mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
Eval
This commit is contained in:
parent
bc2fe576a7
commit
09c36844e6
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@ -192,9 +192,7 @@ jobs:
|
||||
echo "UPX_CMD=$(php src/globals/test-extensions.php upx)" >> $GITHUB_ENV
|
||||
|
||||
- name: "Run Build Tests (download)"
|
||||
run: |
|
||||
bin/spc $(php src/globals/test-extensions.php download_cmd ${{ matrix.os }} ${{ matrix.php }})
|
||||
run: php src/globals/test-extensions.php download_cmd ${{ matrix.os }} ${{ matrix.php }}
|
||||
|
||||
- name: "Run Build Tests (build)"
|
||||
run: |
|
||||
bin/spc $(php src/globals/test-extensions.php build_cmd ${{ matrix.os }} ${{ matrix.php }})
|
||||
run: php src/globals/test-extensions.php build_cmd ${{ matrix.os }} ${{ matrix.php }}
|
||||
|
||||
@ -143,3 +143,11 @@ echo match ($argv[1]) {
|
||||
'build_cmd' => $build_cmd,
|
||||
default => '',
|
||||
};
|
||||
|
||||
if ($argv[1] === 'download_cmd' || $argv[1] === 'build_cmd') {
|
||||
if (str_starts_with($argv[2], 'windows-')) {
|
||||
passthru('powershell.exe -file .\bin\spc.ps1 ' . $down_cmd);
|
||||
} else {
|
||||
passthru('./bin/spc ' . $down_cmd);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user