Skip to content

Commit

Permalink
Eval
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Oct 4, 2024
1 parent 5cc9ba1 commit e5664e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
8 changes: 8 additions & 0 deletions src/globals/test-extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,11 @@ function quote2(string $param): string
'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);
}
}

0 comments on commit e5664e5

Please sign in to comment.