File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 7070 with :
7171 path : |
7272 C:\php\php-*.zip
73- key : ${{ runner.os }}-php
73+ key : ${{ runner.os }}-php-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}
74+ restore-keys : |
75+ ${{ runner.os }}-php-
7476
7577 - name : Install build command
7678 run : .\.github\workflows\install.ps1
@@ -87,21 +89,21 @@ jobs:
8789 REPORT_EXIT_STATUS : 1
8890 NO_INTERACTION : 1
8991
90- - if : ${{ github.event_name == 'release' }}
92+ - if : ${{ github.event_name == 'release' && matrix.library == '' }}
9193 name : Archive DLL
9294 run : |-
9395 Copy-Item .\php_${{ env.PHP_EXT }}.dll .\$env:EXT_NAME.dll
9496 Compress-Archive -Path .\$env:EXT_NAME.dll -Destination .\$env:EXT_NAME.zip
9597 shell : pwsh
9698 env :
97- EXT_NAME : php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}
99+ EXT_NAME : php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}
98100
99- - if : ${{ github.event_name == 'release' }}
101+ - if : ${{ github.event_name == 'release' && matrix.library == '' }}
100102 name : Store archive DLL
101103 uses : actions/upload-artifact@v4
102104 with :
103- name : ${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}
104- path : .\php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}.zip
105+ name : ${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}
106+ path : .\php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}.zip
105107 overwrite : true
106108
107109 release :
You can’t perform that action at this time.
0 commit comments