From 5fd881740ef5a7193e64ff57c228b0ec4f530865 Mon Sep 17 00:00:00 2001 From: Florian Engelhardt Date: Fri, 13 Dec 2024 11:34:45 +0100 Subject: [PATCH] try windows releases --- .github/workflows/windows-release.yml | 39 +++++++++++++++++++++++++++ 1 file changed, 39 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..fcd24c6 --- /dev/null +++ b/.github/workflows/windows-release.yml @@ -0,0 +1,39 @@ +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' + 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: 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