Add building of windows binaries to GitHub releases #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |