Skip to content

Commit 867a1bc

Browse files
committed
Try to set compatible toolser for php 7.4
1 parent 618e3ef commit 867a1bc

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/actions/build-win/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,21 @@ runs:
5353
cache_dir: ${{ env.CACHE_DIR }}
5454

5555
- name: Configure Developer Command Prompt for MSVC compiler
56+
if: ${{ matrix.php }} != '7.4'
5657
uses: ilammy/[email protected]
5758
with:
5859
arch: ${{ inputs.arch }}
5960

61+
# Workaround for
62+
# PHP Warning: PHP Startup: Can't load module 'C:\tools\php\ext\php_zephir_parser.dll'
63+
# as it's linked with 14.29, but the core is linked with 14.16 in Unknown on line 0
64+
- name: Configure Developer Command Prompt for MSVC compiler
65+
if: ${{ matrix.php }} == '7.4'
66+
uses: ilammy/[email protected]
67+
with:
68+
arch: ${{ inputs.arch }}
69+
toolset: 14.16
70+
6071
- name: Getting Details About Installed PHP
6172
shell: powershell
6273
run: |

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- { php: '7.1', ts: 'nts', arch: 'x64', name: 'windows2019-vc14', os: 'windows-2019', compiler: 'vc14' }
5151
- { php: '7.2', ts: 'nts', arch: 'x64', name: 'windows2019-vc15', os: 'windows-2019', compiler: 'vc15' }
5252
- { php: '7.3', ts: 'nts', arch: 'x64', name: 'windows2019-vc15', os: 'windows-2019', compiler: 'vc15' }
53-
- { php: '7.4', ts: 'nts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16' }
53+
- { php: '7.4', ts: 'nts', arch: 'x64', name: 'windows2019-vc15', os: 'windows-2019', compiler: 'vc15' }
5454
- { php: '8.0', ts: 'nts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16' }
5555
- { php: '8.1', ts: 'nts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16' }
5656

0 commit comments

Comments
 (0)