Skip to content

Commit f3faf6e

Browse files
committed
ci: update windows workflow with SDK version bump and library matrix refactor
1 parent 83c6409 commit f3faf6e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/windows.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
env:
99
PHP_EXT: lz4
1010
PHP_EXT_VERSION: ${{ github.event.release.tag_name }}
11-
BIN_SDK_VER: 2.3.0
11+
BIN_SDK_VER: 2.5.0
1212

1313
jobs:
1414
ci:
@@ -29,8 +29,8 @@ jobs:
2929
- vs16
3030
- vs17
3131
library:
32-
- ''
33-
- 'vcpkg'
32+
- false
33+
- true
3434
exclude:
3535
- php: '8.4'
3636
vs: vs16
@@ -49,6 +49,8 @@ jobs:
4949
ARCH: ${{ matrix.arch }}
5050
TS: ${{ matrix.ts }}
5151

52+
if: contains(github.event.head_commit.message, 'ci skip') == false
53+
5254
steps:
5355
- name: Checkout repository
5456
uses: actions/checkout@v4
@@ -58,7 +60,7 @@ jobs:
5860
- name: Checkout submodule
5961
run: .\.github\workflows\submodule.ps1
6062
shell: pwsh
61-
if: ${{ matrix.library == '' }}
63+
if: ${{ ! matrix.library }}
6264
- name: Install dependency library
6365
run: .\.github\workflows\vcpkg.ps1
6466
shell: pwsh
@@ -89,7 +91,7 @@ jobs:
8991
REPORT_EXIT_STATUS: 1
9092
NO_INTERACTION: 1
9193

92-
- if: ${{ github.event_name == 'release' && matrix.library == '' }}
94+
- if: ${{ github.event_name == 'release' && matrix.library == false }}
9395
name: Archive DLL
9496
run: |-
9597
Copy-Item .\php_${{ env.PHP_EXT }}.dll .\$env:EXT_NAME.dll
@@ -98,11 +100,11 @@ jobs:
98100
env:
99101
EXT_NAME: php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}
100102

101-
- if: ${{ github.event_name == 'release' && matrix.library == '' }}
103+
- if: ${{ github.event_name == 'release' && matrix.library == false }}
102104
name: Store archive DLL
103105
uses: actions/upload-artifact@v4
104106
with:
105-
name: ${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}
107+
name: ${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}
106108
path: .\php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}.zip
107109
overwrite: true
108110

0 commit comments

Comments
 (0)