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 72
72
with :
73
73
path : |
74
74
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-
76
78
77
79
- name : Install build command
78
80
run : .\.github\workflows\install.ps1
@@ -89,21 +91,21 @@ jobs:
89
91
REPORT_EXIT_STATUS : 1
90
92
NO_INTERACTION : 1
91
93
92
- - if : ${{ github.event_name == 'release' }}
94
+ - if : ${{ github.event_name == 'release' && matrix.library == false }}
93
95
name : Archive DLL
94
96
run : |-
95
97
Copy-Item .\php_${{ env.PHP_EXT }}.dll .\$env:EXT_NAME.dll
96
98
Compress-Archive -Path .\$env:EXT_NAME.dll -Destination .\$env:EXT_NAME.zip
97
99
shell : pwsh
98
100
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 }}
100
102
101
- - if : ${{ github.event_name == 'release' }}
103
+ - if : ${{ github.event_name == 'release' && matrix.library == false }}
102
104
name : Store archive DLL
103
105
uses : actions/upload-artifact@v4
104
106
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
107
109
overwrite : true
108
110
109
111
release :
You can’t perform that action at this time.
0 commit comments