Skip to content

Commit 248a8de

Browse files
try windows releases
1 parent 742fbaf commit 248a8de

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/windows-release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish Windows Releases
2+
on:
3+
pull_request: null
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
get-extension-matrix:
12+
runs-on: ubuntu-latest
13+
outputs:
14+
matrix: ${{ steps.extension-matrix.outputs.matrix }}
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Get the extension matrix
19+
id: extension-matrix
20+
uses: php/php-windows-builder/extension-matrix@v1
21+
with:
22+
php-version-list: '8.0, 8.1, 8.2, 8.3, 8.4'
23+
arch-list: 'x64, x86'
24+
ts-list: 'ts'
25+
build:
26+
needs: get-extension-matrix
27+
runs-on: ${{ matrix.os }}
28+
strategy:
29+
matrix: ${{fromJson(needs.get-extension-matrix.outputs.matrix)}}
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
- name: Fetch dependencies
34+
run: |
35+
curl -LO https://downloads.php.net/~windows/pecl/deps/pthreads-3.0.0-vs16-${{matrix.arch}}.zip
36+
7z x pthreads-3.0.0-vs16-${{matrix.arch}}.zip -o..\deps
37+
- name: Build the extension
38+
uses: php/php-windows-builder/extension@v1
39+
with:
40+
php-version: ${{ matrix.php-version }}
41+
arch: ${{ matrix.arch }}
42+
ts: ${{ matrix.ts }}
43+
args: --enable-parallel

0 commit comments

Comments
 (0)