This commit is contained in:
crazywhalecc 2024-10-04 16:04:13 +08:00 committed by Jerry Ma
parent bc2fe576a7
commit 09c36844e6
2 changed files with 10 additions and 4 deletions

View File

@ -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 }}

View File

@ -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);
}
}