From d3b7f82f61363aa56a77810373a56458fd789dc9 Mon Sep 17 00:00:00 2001 From: Florian Engelhardt Date: Fri, 13 Dec 2024 11:34:45 +0100 Subject: [PATCH 1/4] try windows releases --- .github/workflows/windows-release.yml | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/windows-release.yml diff --git a/.github/workflows/windows-release.yml b/.github/workflows/windows-release.yml new file mode 100644 index 0000000..4b5025d --- /dev/null +++ b/.github/workflows/windows-release.yml @@ -0,0 +1,43 @@ +name: Publish Windows Releases +on: + pull_request: null + release: + types: [published] + +permissions: + contents: write + +jobs: + get-extension-matrix: + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.extension-matrix.outputs.matrix }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Get the extension matrix + id: extension-matrix + uses: php/php-windows-builder/extension-matrix@v1 + with: + php-version-list: '8.0, 8.1, 8.2, 8.3, 8.4' + arch-list: 'x64, x86' + ts-list: 'ts' + build: + needs: get-extension-matrix + runs-on: ${{ matrix.os }} + strategy: + matrix: ${{fromJson(needs.get-extension-matrix.outputs.matrix)}} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Fetch dependencies + run: | + curl -LO https://downloads.php.net/~windows/pecl/deps/pthreads-3.0.0-vs16-${{matrix.arch}}.zip + 7z x pthreads-3.0.0-vs16-${{matrix.arch}}.zip -- -o..\deps + - name: Build the extension + uses: php/php-windows-builder/extension@v1 + with: + php-version: ${{ matrix.php-version }} + arch: ${{ matrix.arch }} + ts: ${{ matrix.ts }} + args: --enable-parallel From f7b8fb6a34c922b88080da6e7864e477de4dad9f Mon Sep 17 00:00:00 2001 From: Florian Engelhardt Date: Fri, 13 Dec 2024 12:15:52 +0100 Subject: [PATCH 2/4] Update .github/workflows/windows-release.yml Co-authored-by: Christoph M. Becker --- .github/workflows/windows-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows-release.yml b/.github/workflows/windows-release.yml index 4b5025d..a853617 100644 --- a/.github/workflows/windows-release.yml +++ b/.github/workflows/windows-release.yml @@ -40,4 +40,4 @@ jobs: php-version: ${{ matrix.php-version }} arch: ${{ matrix.arch }} ts: ${{ matrix.ts }} - args: --enable-parallel + args: --with-parallel From e90b5bd0436d08d56261764eb78ee7d8a173de45 Mon Sep 17 00:00:00 2001 From: Florian Engelhardt Date: Fri, 13 Dec 2024 13:19:59 +0100 Subject: [PATCH 3/4] Update .github/workflows/windows-release.yml Co-authored-by: Christoph M. Becker --- .github/workflows/windows-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/windows-release.yml b/.github/workflows/windows-release.yml index a853617..cd62b59 100644 --- a/.github/workflows/windows-release.yml +++ b/.github/workflows/windows-release.yml @@ -41,3 +41,4 @@ jobs: arch: ${{ matrix.arch }} ts: ${{ matrix.ts }} args: --with-parallel + libs: pthreads From 0664af2c84580830108ee519178cb02183d214dc Mon Sep 17 00:00:00 2001 From: Florian Engelhardt Date: Fri, 13 Dec 2024 14:46:35 +0100 Subject: [PATCH 4/4] remove deps install step --- .github/workflows/windows-release.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/windows-release.yml b/.github/workflows/windows-release.yml index cd62b59..c88d6e5 100644 --- a/.github/workflows/windows-release.yml +++ b/.github/workflows/windows-release.yml @@ -30,10 +30,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Fetch dependencies - run: | - curl -LO https://downloads.php.net/~windows/pecl/deps/pthreads-3.0.0-vs16-${{matrix.arch}}.zip - 7z x pthreads-3.0.0-vs16-${{matrix.arch}}.zip -- -o..\deps - name: Build the extension uses: php/php-windows-builder/extension@v1 with: