diff --git a/.appveyor.yml b/.appveyor.yml index 2a52d36..0dd1714 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -10,34 +10,34 @@ cache: - c:\build-cache -> .appveyor.yml, .appveyor\install.ps1 environment: - BIN_SDK_VER: 2.2.0 + BIN_SDK_VER: 2.3.0 matrix: - - PHP_VER: 7.2.30 + - PHP_VER: 7.2.34 ARCH: x64 TS: 1 VC: vc15 DEP: libyaml-0.1.7 - - PHP_VER: 7.2.30 + - PHP_VER: 7.2.34 ARCH: x86 TS: 0 VC: vc15 DEP: libyaml-0.1.7 - - PHP_VER: 7.3.17 + - PHP_VER: 7.3.33 ARCH: x64 TS: 1 VC: vc15 DEP: libyaml-0.1.7 - - PHP_VER: 7.3.17 + - PHP_VER: 7.3.33 ARCH: x86 TS: 0 VC: vc15 DEP: libyaml-0.1.7 - - PHP_VER: 7.4.5 + - PHP_VER: 7.4.33 ARCH: x64 TS: 1 VC: vc15 DEP: libyaml-0.1.7 - - PHP_VER: 7.4.5 + - PHP_VER: 7.4.33 ARCH: x86 TS: 0 VC: vc15 diff --git a/.appveyor/install.ps1 b/.appveyor/install.ps1 index b2e22f6..afd9d44 100644 --- a/.appveyor/install.ps1 +++ b/.appveyor/install.ps1 @@ -1,9 +1,16 @@ if (-not (Test-Path c:\build-cache)) { mkdir c:\build-cache } + +if ($env:PHP_VER -lt "7.4") { + $vc = $env:VC.toUpper() +} else { + $vc = $env:VC +} + $bname = 'php-sdk-' + $env:BIN_SDK_VER + '.zip' if (-not (Test-Path c:\build-cache\$bname)) { - Invoke-WebRequest "https://github.com/microsoft/php-sdk-binary-tools/archive/$bname" -OutFile "c:\build-cache\$bname" + Invoke-WebRequest "https://github.com/php/php-sdk-binary-tools/archive/$bname" -OutFile "c:\build-cache\$bname" } $dname0 = 'php-sdk-binary-tools-php-sdk-' + $env:BIN_SDK_VER $dname1 = 'php-sdk-' + $env:BIN_SDK_VER @@ -13,15 +20,15 @@ if (-not (Test-Path c:\build-cache\$dname1)) { } $ts_part = '' if ('0' -eq $env:TS) { $ts_part = '-nts' } -$bname = 'php-devel-pack-' + $env:PHP_VER + $ts_part + '-Win32-' + $env:VC.toUpper() + '-' + $env:ARCH + '.zip' +$bname = 'php-devel-pack-' + $env:PHP_VER + $ts_part + '-Win32-' + $vc + '-' + $env:ARCH + '.zip' if (-not (Test-Path c:\build-cache\$bname)) { - Invoke-WebRequest "http://windows.php.net/downloads/releases/archives/$bname" -OutFile "c:\build-cache\$bname" + Invoke-WebRequest "https://downloads.php.net/~windows/releases/archives/$bname" -OutFile "c:\build-cache\$bname" if (-not (Test-Path c:\build-cache\$bname)) { - Invoke-WebRequest "http://windows.php.net/downloads/releases/$bname" -OutFile "c:\build-cache\$bname" + Invoke-WebRequest "hhttps://downloads.php.net/~windows/releases/$bname" -OutFile "c:\build-cache\$bname" } } -$dname0 = 'php-' + $env:PHP_VER + '-devel-' + $env:VC.toUpper() + '-' + $env:ARCH -$dname1 = 'php-' + $env:PHP_VER + $ts_part + '-devel-' + $env:VC.toUpper() + '-' + $env:ARCH +$dname0 = 'php-' + $env:PHP_VER + '-devel-' + $vc + '-' + $env:ARCH +$dname1 = 'php-' + $env:PHP_VER + $ts_part + '-devel-' + $vc + '-' + $env:ARCH if (-not (Test-Path c:\build-cache\$dname1)) { 7z x c:\build-cache\$bname -oc:\build-cache if ($dname0 -ne $dname1) { @@ -31,22 +38,22 @@ if (-not (Test-Path c:\build-cache\$dname1)) { $env:PHP_DEVEL_PATH = 'c:\build-cache\' + $dname1 $env:PATH = $env:PHP_DEVEL_PATH + ';' + $env:PATH -$bname = 'php-' + $env:PHP_VER + $ts_part + '-Win32-' + $env:VC.toUpper() + '-' + $env:ARCH + '.zip' +$bname = 'php-' + $env:PHP_VER + $ts_part + '-Win32-' + $vc + '-' + $env:ARCH + '.zip' if (-not (Test-Path c:\build-cache\$bname)) { - Invoke-WebRequest "http://windows.php.net/downloads/releases/archives/$bname" -OutFile "c:\build-cache\$bname" + Invoke-WebRequest "https://downloads.php.net/~windows/releases/archives/$bname" -OutFile "c:\build-cache\$bname" if (-not (Test-Path c:\build-cache\$bname)) { - Invoke-WebRequest "http://windows.php.net/downloads/releases/$bname" -OutFile "c:\build-cache\$bname" + Invoke-WebRequest "https://downloads.php.net/~windows/releases/$bname" -OutFile "c:\build-cache\$bname" } } -$dname = 'php-' + $env:PHP_VER + $ts_part + '-Win32-' + $env:VC.toUpper() + '-' + $env:ARCH +$dname = 'php-' + $env:PHP_VER + $ts_part + '-Win32-' + $vc + '-' + $env:ARCH if (-not (Test-Path c:\build-cache\$dname)) { 7z x c:\build-cache\$bname -oc:\build-cache\$dname } $env:PHP_PATH = 'c:\build-cache\' + $dname $env:PATH = $env:PHP_PATH + ';' + $env:PATH -$bname = $env:DEP + '-' + $env:VC.toUpper() + '-' + $env:ARCH + '.zip' +$bname = $env:DEP + '-' + $env:VC.toLower() + '-' + $env:ARCH + '.zip' if (-not (Test-Path c:\build-cache\$bname)) { - Invoke-WebRequest "http://windows.php.net/downloads/pecl/deps/$bname" -OutFile "c:\build-cache\$bname" + Invoke-WebRequest "http://downloads.php.net/~windows/pecl/deps/$bname" -OutFile "c:\build-cache\$bname" 7z x c:\build-cache\$bname -oc:\build-cache\deps } diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8293056..2bcddc1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -66,7 +66,7 @@ jobs: windows: name: Windows - runs-on: windows-2019 + runs-on: windows-2022 defaults: run: @@ -80,13 +80,12 @@ jobs: - "8.1" - "8.2" - "8.3" + - "8.4" arch: - "x64" ts: - nts - ts - vsversion: - - "16.0" libyaml: - libyaml-0.1.7-vs16 @@ -97,11 +96,12 @@ jobs: uses: actions/checkout@v3 - name: Setup PHP id: setup-php - uses: php/setup-php-sdk@v0.8 + uses: php/setup-php-sdk@v0.10 with: version: "${{ matrix.php-version }}" arch: "${{ matrix.arch }}" ts: "${{ matrix.ts }}" + cache: true - name: Download deps run: | curl -LO https://windows.php.net/downloads/pecl/deps/${{ matrix.libyaml }}-${{ matrix.arch }}.zip @@ -112,7 +112,6 @@ jobs: with: arch: "${{ matrix.arch }}" toolset: "${{ steps.setup-php.outputs.toolset }}" - vsversion: "${{ matrix.vsversion }}" - name: Generate build files run: phpize - name: Configure build