setup-php 2.25.0 → 2.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/configs/mod_priority +1 -0
- package/src/scripts/win32.ps1 +15 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "setup-php",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Setup PHP for use with GitHub Actions",
|
|
6
6
|
"main": "lib/install.js",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/jest": "^29.5.0",
|
|
43
43
|
"@types/node": "^18.15.11",
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
45
|
-
"@typescript-eslint/parser": "^5.
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
|
45
|
+
"@typescript-eslint/parser": "^5.59.0",
|
|
46
46
|
"@vercel/ncc": "^0.36.1",
|
|
47
47
|
"eslint": "^8.38.0",
|
|
48
48
|
"eslint-config-prettier": "^8.8.0",
|
package/src/configs/mod_priority
CHANGED
package/src/scripts/win32.ps1
CHANGED
|
@@ -281,13 +281,22 @@ Function Set-PhpCache {
|
|
|
281
281
|
|
|
282
282
|
# Function to add debug symbols to PHP.
|
|
283
283
|
Function Add-DebugSymbols {
|
|
284
|
-
$release = Invoke-RestMethod https://api.github.com/repos/shivammathur/php-builder-windows/releases/tags/php$version
|
|
285
284
|
$dev = if ($version -match $nightly_versions) { '-dev' } else { '' }
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
285
|
+
try {
|
|
286
|
+
$release = Invoke-RestMethod https://api.github.com/repos/shivammathur/php-builder-windows/releases/tags/php$version
|
|
287
|
+
$asset = $release.assets | ForEach-Object {
|
|
288
|
+
if($_.name -match "php-debug-pack-$version.[0-9]+$dev$env:PHPTS-Win32-.*-$arch.zip") {
|
|
289
|
+
return $_.name
|
|
290
|
+
}
|
|
291
|
+
} | Select-Object -Last 1
|
|
292
|
+
} catch {
|
|
293
|
+
$release = Get-File -Url $php_builder/releases/expanded_assets/php$version
|
|
294
|
+
$asset = $release.links.href | ForEach-Object {
|
|
295
|
+
if($_ -match "php-debug-pack-$version.[0-9]+$dev$env:PHPTS-Win32-.*-$arch.zip") {
|
|
296
|
+
return $_.split('/')[-1]
|
|
297
|
+
}
|
|
298
|
+
} | Select-Object -Last 1
|
|
299
|
+
}
|
|
291
300
|
Get-File -Url $php_builder/releases/download/php$version/$asset -OutFile $php_dir\$asset
|
|
292
301
|
Expand-Archive -Path $php_dir\$asset -DestinationPath $php_dir -Force
|
|
293
302
|
Get-ChildItem -Path $php_dir -Filter php_*.pdb | Move-Item -Destination $ext_dir
|