-
-
Notifications
You must be signed in to change notification settings - Fork 35
71 lines (65 loc) · 2.16 KB
/
Copy pathtemplate-php.yml
File metadata and controls
71 lines (65 loc) · 2.16 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
################################################################################
# These setups are part of the project: https://code.shin.company/php
# Please respect the intellectual effort that went into creating them.
# If you use or copy these ideas, proper credit would be appreciated.
# - Author: Mai Nhut Tan <shin@shin.company>
# - License: https://code.shin.company/php/blob/main/LICENSE
################################################################################
name: Build Template PHP
################################################################################
################################################################################
on:
workflow_call:
inputs:
app_name:
required: true
type: string
server:
required: false
type: string
default: ""
tag_prefix:
required: false
type: string
default: ""
build_all:
required: false
type: boolean
default: false
################################################################################
################################################################################
jobs:
maintained:
uses: ./.github/workflows/template-common.yml
secrets: inherit
strategy:
fail-fast: false
matrix:
php_version: ["8.5", "8.4", "8.3", "8.2"]
os: ["", "alpine"]
with:
os: ${{ matrix.os }}
php_version: ${{ matrix.php_version }}
app_name: ${{ inputs.app_name }}
server: ${{ inputs.server }}
tag_prefix: ${{ inputs.tag_prefix }}
outdated:
if: ${{ inputs.build_all }}
uses: ./.github/workflows/template-common.yml
secrets: inherit
strategy:
fail-fast: false
matrix:
php_version: ["8.1", "8.0", "7.4", "7.3", "7.2", "7.1", "7.0", "5.6"]
os: ["", "alpine"]
exclude:
- os: "alpine"
php_version: "5.6"
- os: "alpine"
php_version: "7.0"
with:
os: ${{ matrix.os }}
php_version: ${{ matrix.php_version }}
app_name: ${{ inputs.app_name }}
server: ${{ inputs.server }}
tag_prefix: ${{ inputs.tag_prefix }}