Skip to content

Commit cdc42be

Browse files
committed
chore(ci): change arch for windows dll: x64 -> x86_64
1 parent d49a668 commit cdc42be

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/windows.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ jobs:
7979
with:
8080
path: |
8181
C:\php\php-*.zip
82-
key: ${{ runner.os }}-php
82+
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}
83+
restore-keys: |
84+
${{ runner.os }}-php-
8385
8486
- name: Install build command
8587
run: .\.github\workflows\install.ps1
@@ -96,21 +98,21 @@ jobs:
9698
REPORT_EXIT_STATUS: 1
9799
NO_INTERACTION: 1
98100

99-
- if: ${{ github.event_name == 'release' }}
101+
- if: ${{ github.event_name == 'release' && matrix.library == false && matrix.apcu == '' }}
100102
name: Archive DLL
101103
run: |-
102104
Copy-Item .\php_${{ env.PHP_EXT }}.dll .\$env:EXT_NAME.dll
103105
Compress-Archive -Path .\$env:EXT_NAME.dll -Destination .\$env:EXT_NAME.zip
104106
shell: pwsh
105107
env:
106-
EXT_NAME: php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}
108+
EXT_NAME: php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}
107109

108-
- if: ${{ github.event_name == 'release' }}
110+
- if: ${{ github.event_name == 'release' && matrix.library == false && matrix.apcu == '' }}
109111
name: Store archive DLL
110112
uses: actions/upload-artifact@v4
111113
with:
112-
name: ${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}
113-
path: .\php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}.zip
114+
name: ${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}
115+
path: .\php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}.zip
114116
overwrite: true
115117

116118
release:

0 commit comments

Comments
 (0)