File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments