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
|
echo "UPX_CMD=$(php src/globals/test-extensions.php upx)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: "Run Build Tests (download)"
|
- name: "Run Build Tests (download)"
|
||||||
run: |
|
run: php src/globals/test-extensions.php download_cmd ${{ matrix.os }} ${{ matrix.php }}
|
||||||
bin/spc $(php src/globals/test-extensions.php download_cmd ${{ matrix.os }} ${{ matrix.php }})
|
|
||||||
|
|
||||||
- name: "Run Build Tests (build)"
|
- name: "Run Build Tests (build)"
|
||||||
run: |
|
run: php src/globals/test-extensions.php build_cmd ${{ matrix.os }} ${{ matrix.php }}
|
||||||
bin/spc $(php src/globals/test-extensions.php build_cmd ${{ matrix.os }} ${{ matrix.php }})
|
|
||||||
|
|||||||
@ -143,3 +143,11 @@ echo match ($argv[1]) {
|
|||||||
'build_cmd' => $build_cmd,
|
'build_cmd' => $build_cmd,
|
||||||
default => '',
|
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