File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,27 @@ jobs:
114
114
- name : " Copy signature file"
115
115
run : cp ${RELEASE_ASSETS}/php_mongodb.dll.sig .
116
116
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
+
117
135
- name : " Create and upload release asset"
118
136
if : ${{ inputs.upload_release_asset }}
119
137
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
121
139
zip ${ARCHIVE} php_mongodb.dll php_mongodb.dll.sig php_mongodb.pdb CREDITS CONTRIBUTING.md LICENSE README.md THIRD_PARTY_NOTICES
122
140
gh release upload ${{ inputs.version }} ${ARCHIVE}
You can’t perform that action at this time.
0 commit comments