mirror of
https://github.com/php/pecl-text-xdiff.git
synced 2026-03-23 22:42:20 +01:00
Don't hard code libxdiff version for GH action on Windows
This commit is contained in:
5
.github/workflows/install.ps1
vendored
5
.github/workflows/install.ps1
vendored
@@ -1,7 +1,8 @@
|
||||
param (
|
||||
[Parameter(Mandatory)] $version,
|
||||
[Parameter(Mandatory)] $ts,
|
||||
[Parameter(Mandatory)] $arch
|
||||
[Parameter(Mandatory)] $arch,
|
||||
[Parameter(Mandatory)] $libxdiff
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
@@ -39,7 +40,7 @@ Move-Item "php-$phpversion-devel-vc15-$arch" -Destination "php-devel"
|
||||
|
||||
# libxdiff
|
||||
|
||||
$file = "libxdiff-0.23-vs16-$arch.zip"
|
||||
$file = "libxdiff-$libxdiff-vc15-$arch.zip"
|
||||
Invoke-WebRequest "https://windows.php.net/downloads/pecl/deps/$file" -OutFile $file
|
||||
Expand-Archive $file -DestinationPath "deps"
|
||||
Move-Item "deps\COPYING" "deps\COPYING.LIBXDIFF"
|
||||
|
||||
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Install
|
||||
run: ./.github/workflows/install.ps1 -version ${{matrix.version}} -ts ${{matrix.ts}} -arch ${{matrix.arch}}
|
||||
run: ./.github/workflows/install.ps1 -version ${{matrix.version}} -ts ${{matrix.ts}} -arch ${{matrix.arch}} -libxdiff 0.23
|
||||
- name: Build
|
||||
run: ./.github/workflows/build.ps1 -arch ${{matrix.arch}}
|
||||
- name: Package
|
||||
|
||||
Reference in New Issue
Block a user