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 7272 with :
7373 path : |
7474 C:\php\php-*.zip
75- key : ${{ runner.os }}-php
75+ key : ${{ runner.os }}-php-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}
76+ restore-keys : |
77+ ${{ runner.os }}-php-
7678
7779 - name : Install build command
7880 run : .\.github\workflows\install.ps1
@@ -89,21 +91,21 @@ jobs:
8991 REPORT_EXIT_STATUS : 1
9092 NO_INTERACTION : 1
9193
92- - if : ${{ github.event_name == 'release' }}
94+ - if : ${{ github.event_name == 'release' && matrix.library == false }}
9395 name : Archive DLL
9496 run : |-
9597 Copy-Item .\php_${{ env.PHP_EXT }}.dll .\$env:EXT_NAME.dll
9698 Compress-Archive -Path .\$env:EXT_NAME.dll -Destination .\$env:EXT_NAME.zip
9799 shell : pwsh
98100 env :
99- EXT_NAME : php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}
101+ EXT_NAME : php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}
100102
101- - if : ${{ github.event_name == 'release' }}
103+ - if : ${{ github.event_name == 'release' && matrix.library == false }}
102104 name : Store archive DLL
103105 uses : actions/upload-artifact@v4
104106 with :
105- name : ${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}
106- path : .\php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}.zip
107+ name : ${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}
108+ path : .\php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}.zip
107109 overwrite : true
108110
109111 release :
You can’t perform that action at this time.
0 commit comments