-
Notifications
You must be signed in to change notification settings - Fork 27
53 lines (51 loc) · 1.41 KB
/
extension.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build PHP Extension
on:
workflow_dispatch:
inputs:
extension_url:
description: 'Extension URL'
required: true
extension_ref:
description: 'Extension ref'
required: true
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: ./extension-matrix
with:
extension-url: ${{ inputs.extension_url }}
extension-ref: ${{ inputs.extension_ref }}
arch-list: 'x64, x86'
ts-list: 'nts, ts'
extension:
needs: get-extension-matrix
runs-on: windows-2019
strategy:
matrix: ${{fromJson(needs.get-extension-matrix.outputs.matrix)}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build the extension
uses: ./extension
with:
extension-url: ${{ inputs.extension_url }}
extension-ref: ${{ inputs.extension_ref }}
php-version: ${{ matrix.php-version }}
arch: ${{ matrix.arch }}
ts: ${{ matrix.ts }}
artifacts:
runs-on: ubuntu-latest
needs: extension
steps:
- name: Upload artifacts
uses: actions/upload-artifact/merge@v4
with:
name: artifacts
delete-merged: true