Skip to content

Commit 0da08c6

Browse files
committed
chore(ci): change arch for windows dll: x64 -> x86_64
1 parent 89d227a commit 0da08c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/windows.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
with:
7171
path: |
7272
C:\php\php-*.zip
73-
key: ${{ runner.os }}-php
73+
key: ${{ runner.os }}-${{ hashFiles('C:\php\php-*.zip') }}
7474

7575
- name: Install build command
7676
run: .\.github\workflows\install.ps1
@@ -94,14 +94,14 @@ jobs:
9494
Compress-Archive -Path .\$env:EXT_NAME.dll -Destination .\$env:EXT_NAME.zip
9595
shell: pwsh
9696
env:
97-
EXT_NAME: php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}
97+
EXT_NAME: php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}
9898

9999
- if: ${{ github.event_name == 'release' }}
100100
name: Store archive DLL
101101
uses: actions/upload-artifact@v4
102102
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
103+
name: ${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}
104+
path: .\php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch == 'x64' && 'x86_64' || matrix.arch }}.zip
105105
overwrite: true
106106

107107
release:

0 commit comments

Comments
 (0)