|
38 | 38 | defaults:
|
39 | 39 | run:
|
40 | 40 | shell: cmd
|
| 41 | + outputs: |
| 42 | + vs: ${{ steps.build-driver.outputs.vs }} |
41 | 43 |
|
42 | 44 | steps:
|
43 | 45 | - uses: actions/checkout@v4
|
@@ -110,31 +112,22 @@ jobs:
|
110 | 112 | with:
|
111 | 113 | filenames: php_mongodb.dll
|
112 | 114 |
|
113 |
| - # Copy the signature file from the release asset directory to avoid directory issues in the ZIP file |
114 |
| - - name: "Copy signature file" |
115 |
| - run: cp ${RELEASE_ASSETS}/php_mongodb.dll.sig . |
| 115 | + - name: "Generate file name for DLL and archive" |
| 116 | + run: |
| 117 | + echo FILENAME="php_mongodb-${{ inputs.version }}-${{ inputs.php }}-${{ inputs.ts }}-${{ needs.build.outputs.vs }}-${{ inputs.arch == 'x64' && 'x64_86' || inputs.arch }}" >> "$GITHUB_ENV" |
116 | 118 |
|
117 |
| - - name: "Set compiler environment variable" |
| 119 | + # In this step, we: |
| 120 | + # - update the extension DLL file name to match the expectation of pie |
| 121 | + # - copy the signature file from the release asset directory to avoid directory issues in the archive |
| 122 | + # - rename the signature file to match the extension DLL file |
| 123 | + - name: "Copy signature file and use correct file names" |
118 | 124 | run: |
|
119 |
| - case "$PHP_VERSION" in |
120 |
| - "7.4") |
121 |
| - COMPILER="vc15" |
122 |
| - ;; |
123 |
| - "8.0" | "8.1" | "8.2" | "8.3") |
124 |
| - COMPILER="vs16" |
125 |
| - ;; |
126 |
| - "8.4") |
127 |
| - COMPILER="vs17" |
128 |
| - ;; |
129 |
| - esac |
130 |
| - echo "COMPILER=${COMPILER}" >> "$GITHUB_ENV" |
131 |
| - shell: bash |
132 |
| - env: |
133 |
| - PHP_VERSION: ${{ inputs.php }} |
| 125 | + mv php_mongodb.dll ${{ env.FILENAME }}.dll |
| 126 | + cp ${RELEASE_ASSETS}/php_mongodb.dll.sig ${{ env.FILENAME }}.dll.sig |
134 | 127 |
|
135 | 128 | - name: "Create and upload release asset"
|
136 | 129 | if: ${{ inputs.upload_release_asset }}
|
137 | 130 | run: |
|
138 |
| - ARCHIVE=php_mongodb-${{ inputs.version }}-${{ inputs.php }}-${{ inputs.ts }}-${{ env.COMPILER }}-${{ inputs.arch }}.zip |
139 |
| - zip ${ARCHIVE} php_mongodb.dll php_mongodb.dll.sig php_mongodb.pdb CREDITS CONTRIBUTING.md LICENSE README.md THIRD_PARTY_NOTICES |
| 131 | + ARCHIVE=${{ env.FILENAME }}.zip |
| 132 | + zip ${ARCHIVE} ${{ env.FILENAME }}.dll ${{ env.FILENAME }}.dll.sig php_mongodb.pdb CREDITS CONTRIBUTING.md LICENSE README.md THIRD_PARTY_NOTICES |
140 | 133 | gh release upload ${{ inputs.version }} ${ARCHIVE}
|
0 commit comments