Skip to content

Commit 7386e16

Browse files
committed
Use lowercase for artifact name
1 parent 1615100 commit 7386e16

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.ci/win-ci-tools.psm1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ function InitializeReleaseVars {
3030
#>
3131

3232
# Build artifacts should be names like this:
33-
# zephir-parser-php-7.0-nts-Win32-VC14-x86.zip
34-
# zephir-parser-php-7.0-ts-Win32-VC14-x64.zip
33+
# zephir-parser-php-7.0-nts-win32-vc14-x86.zip
34+
# zephir-parser-php-7.0-ts-win32-vc14-x64.zip
3535

36-
$VC_Prefix = "VC"
36+
$VC_Prefix = "vc"
3737
if (${env:VC_VERSION} -ge 16) {
38-
$VC_Prefix = "VS"
38+
$VC_Prefix = "vc"
3939
}
4040

4141
# Configure for Windows define `BUILD_DIR` using the next logic:
@@ -55,7 +55,7 @@ function InitializeReleaseVars {
5555
}
5656

5757
$env:RELEASE_DLL_PATH = "${env:GITHUB_WORKSPACE}\${env:RELEASE_FOLDER}\${env:EXTENSION_FILE}"
58-
$env:RELEASE_ZIPBALL = "zephir-parser-php-${env:PHP_MINOR}-${env:BUILD_TYPE}-Win32-${VC_Prefix}${env:VC_VERSION}-${env:PHP_ARCH}"
58+
$env:RELEASE_ZIPBALL = "zephir-parser-php-${env:PHP_MINOR}-${env:BUILD_TYPE}-win32-${VC_Prefix}${env:VC_VERSION}-${env:PHP_ARCH}"
5959

6060
Write-Output "RELEASE_FOLDER=${env:RELEASE_FOLDER}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
6161
Write-Output "RELEASE_ZIPBALL=${env:RELEASE_ZIPBALL}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

.github/workflows/windows.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
vc_prefix: 'vs'
6363
os: windows-2019
6464

65-
name: "PHP-${{ matrix.php }}-${{ matrix.build_type }}-Win32-${{ matrix.vc_prefix }}${{ matrix.vc_num }}-${{ matrix.arch }}"
65+
name: "PHP-${{ matrix.php }}-${{ matrix.build_type }}-win32-${{ matrix.vc_prefix }}${{ matrix.vc_num }}-${{ matrix.arch }}"
6666
runs-on: ${{ matrix.os}}
6767

6868
steps:
@@ -98,7 +98,7 @@ jobs:
9898
uses: actions/cache@v2
9999
with:
100100
path: C:\Downloads
101-
key: ${{ runner.os }}-zephir_parser-php-${{ matrix.php }}-${{ matrix.build_type }}-Win32-${{ matrix.vc_prefix }}${{ matrix.vc_num }}-${{ matrix.arch }}
101+
key: ${{ runner.os }}-zephir_parser-php-${{ matrix.php }}-${{ matrix.build_type }}-win32-${{ matrix.vc_prefix }}${{ matrix.vc_num }}-${{ matrix.arch }}
102102

103103
- name: Install System Dependencies
104104
run: |
@@ -175,6 +175,7 @@ jobs:
175175
-PhpVersion $Env:PHP_VERSION `
176176
-BuildType $Env:BUILD_TYPE `
177177
-Platform $Env:PLATFORM `
178+
-ZipballName $Env:RELEASE_ZIPBALL `
178179
-ConvertMd2Html $true `
179180
-ReleaseFiles "${Env:RELEASE_DLL_PATH}",`
180181
"${Env:GITHUB_WORKSPACE}\LICENSE",`
@@ -185,7 +186,7 @@ jobs:
185186
- name: Upload Zephir Parser
186187
uses: actions/upload-artifact@v2
187188
with:
188-
name: Zephir-Parser-php-${{ matrix.php }}-${{ matrix.build_type }}-Win32-${{ matrix.vc_prefix }}${{ matrix.vc_num }}-${{ matrix.arch }}
189+
name: zephir-parser-php-${{ matrix.php }}-${{ matrix.build_type }}-win32-${{ matrix.vc_prefix }}${{ matrix.vc_num }}-${{ matrix.arch }}
189190
path: |
190191
${{ github.workspace }}\zephir-parser-*.zip
191192
@@ -204,7 +205,7 @@ jobs:
204205
uses: actions/upload-artifact@v2
205206
with:
206207
retention-days: 2
207-
name: errors-zephir-parser-php-${{ matrix.php }}-${{ matrix.build_type }}-Win32-${{ matrix.vc_prefix }}${{ matrix.vc_num }}-${{ matrix.arch }}
208+
name: errors-zephir-parser-php-${{ matrix.php }}-${{ matrix.build_type }}-win32-${{ matrix.vc_prefix }}${{ matrix.vc_num }}-${{ matrix.arch }}
208209
path: |
209210
${{ github.workspace }}\tests
210211
${{ github.workspace }}\parser

0 commit comments

Comments
 (0)