Skip to content

Commit ca52367

Browse files
Merge v1.x into v2.x (#1660)
2 parents 442ff58 + 54bc60a commit ca52367

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/build-windows-package.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,27 @@ jobs:
114114
- name: "Copy signature file"
115115
run: cp ${RELEASE_ASSETS}/php_mongodb.dll.sig .
116116

117+
- name: "Set compiler environment variable"
118+
run: |
119+
case "$PHP_VERSION" in
120+
"7.4")
121+
COMPILER="vc15"
122+
;;
123+
"8.0" | "8.1" | "8.2")
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 }}
134+
117135
- name: "Create and upload release asset"
118136
if: ${{ inputs.upload_release_asset }}
119137
run: |
120-
ARCHIVE=php_mongodb-${{ inputs.version }}-${{ inputs.php }}-${{ inputs.ts }}-${{ inputs.arch }}.zip
138+
ARCHIVE=php_mongodb-${{ inputs.version }}-${{ inputs.php }}-${{ inputs.ts }}-${{ env.COMPILER }}-${{ inputs.arch }}.zip
121139
zip ${ARCHIVE} php_mongodb.dll php_mongodb.dll.sig php_mongodb.pdb CREDITS CONTRIBUTING.md LICENSE README.md THIRD_PARTY_NOTICES
122140
gh release upload ${{ inputs.version }} ${ARCHIVE}

0 commit comments

Comments
 (0)