File tree Expand file tree Collapse file tree 4 files changed +7
-11
lines changed
BuildPhpExtension/private Expand file tree Collapse file tree 4 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 67
67
- name : Build the extension
68
68
uses : ./extension
69
69
with :
70
- artifact-naming-scheme : ' pecl'
71
70
extension-url : ${{ inputs.extension-url }}
72
71
extension-ref : ${{ inputs.extension-ref }}
73
72
php-version : ${{ matrix.php-version }}
78
77
build-directory : ${{ inputs.build-directory }}
79
78
run-tests : ${{ inputs.run-tests }}
80
79
test-runner : ${{ inputs.test-runner }}
80
+ env :
81
+ artifact-naming-scheme : pecl
81
82
82
83
artifacts :
83
84
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -81,7 +81,9 @@ function Add-Package {
81
81
if (-not (Test-Path - Path " php_$ ( $Config.name ) .dll" )) {
82
82
throw " Failed to build extension"
83
83
}
84
- if ($env: ARTIFACT_NAMING_SCHEME -eq ' pie' ) {
84
+ if ($env: ARTIFACT_NAMING_SCHEME -eq ' pecl' ) {
85
+ $artifact = " php_$ ( $Config.package_name ) -$ ( $Config.ref.ToLower ()) -$ ( $Config.php_version ) -$ ( $Config.ts ) -$ ( $Config.vs_version ) -$arch "
86
+ } else {
85
87
if ($arch -eq ' x64' ) {
86
88
$arch = ' x86_64'
87
89
}
@@ -92,8 +94,6 @@ function Add-Package {
92
94
Move-Item - Path $_ - Destination " $artifact .$extension " - Force
93
95
}
94
96
}
95
- } else {
96
- $artifact = " php_$ ( $Config.package_name ) -$ ( $Config.ref.ToLower ()) -$ ( $Config.php_version ) -$ ( $Config.ts ) -$ ( $Config.vs_version ) -$arch "
97
97
}
98
98
99
99
7z a - sdel " $artifact .zip" *
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Function Invoke-Build {
27
27
$builder = " php-sdk\phpsdk-$ ( $Config.vs_version ) -$ ( $Config.Arch ) .bat"
28
28
$task = (Get-Item - Path " ." - Verbose).FullName + ' \task.bat'
29
29
$ref = $Config.ref
30
- if ($env: ARTIFACT_NAMING_SCHEME -ne ' pie ' ) {
30
+ if ($env: ARTIFACT_NAMING_SCHEME -eq ' pecl ' ) {
31
31
$ref = $Config.ref.ToLower ()
32
32
}
33
33
$suffix = " php_" + (@ (
Original file line number Diff line number Diff line change @@ -43,11 +43,6 @@ inputs:
43
43
description : Directory to build the extension in
44
44
required : false
45
45
default : ' build'
46
- artifact-naming-scheme :
47
- description : Naming schema for the artifacts, pie or pecl
48
- deprecationMessage : " This will be removed once pie is released"
49
- required : false
50
- default : pie
51
46
52
47
runs :
53
48
using : composite
60
55
env :
61
56
CONFIGURE_ARGS : ${{inputs.args}}
62
57
LIBRARIES : ${{inputs.libs}}
63
- ARTIFACT_NAMING_SCHEME : ${{inputs .artifact-naming-scheme}}
58
+ ARTIFACT_NAMING_SCHEME : ${{env .artifact-naming-scheme}}
64
59
RUN_TESTS : ${{inputs.run-tests}}
65
60
TEST_RUNNER : ${{inputs.test-runner}}
66
61
BUILD_DIRECTORY : ${{inputs.build-directory}}
You can’t perform that action at this time.
0 commit comments