File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ if (-not (Test-Path "C:\php\$dname1")) {
18
18
}
19
19
20
20
# PHP releases
21
- Invoke-WebRequest " https://windows.php.net/downloads/releases/releases.json" - OutFile " C:\php\releases.json"
21
+ if (-not (Test-Path C:\php\releases.json)) {
22
+ echo " Download: https://windows.php.net/downloads/releases/releases.json"
23
+ Invoke-WebRequest " https://windows.php.net/downloads/releases/releases.json" - OutFile " C:\php\releases.json"
24
+ }
22
25
$php_version = (Get-Content - Path " C:\php\releases.json" | ConvertFrom-Json | ForEach-Object {
23
26
if ($_ ." $env: PHP_VER " ) {
24
27
return $_ ." $env: PHP_VER " .version
Original file line number Diff line number Diff line change 67
67
VCPKG_LIBRARY : zstd
68
68
if : ${{ matrix.library }}
69
69
70
+ - uses : actions/cache@v4
71
+ with :
72
+ path : |
73
+ C:\php\php-*.zip
74
+ key : ${{ runner.os }}-php
75
+
70
76
- name : Install build command
71
77
run : .\.github\workflows\install.ps1
72
78
You can’t perform that action at this time.
0 commit comments