Skip to content

Merge v1.x into v2.x #1660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/build-windows-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,27 @@ jobs:
- name: "Copy signature file"
run: cp ${RELEASE_ASSETS}/php_mongodb.dll.sig .

- name: "Set compiler environment variable"
run: |
case "$PHP_VERSION" in
"7.4")
COMPILER="vc15"
;;
"8.0" | "8.1" | "8.2")
COMPILER="vs16"
;;
"8.4")
COMPILER="vs17"
;;
esac
echo "COMPILER=${COMPILER}" >> "$GITHUB_ENV"
shell: bash
env:
PHP_VERSION: ${{ inputs.php }}

- name: "Create and upload release asset"
if: ${{ inputs.upload_release_asset }}
run: |
ARCHIVE=php_mongodb-${{ inputs.version }}-${{ inputs.php }}-${{ inputs.ts }}-${{ inputs.arch }}.zip
ARCHIVE=php_mongodb-${{ inputs.version }}-${{ inputs.php }}-${{ inputs.ts }}-${{ env.COMPILER }}-${{ inputs.arch }}.zip
zip ${ARCHIVE} php_mongodb.dll php_mongodb.dll.sig php_mongodb.pdb CREDITS CONTRIBUTING.md LICENSE README.md THIRD_PARTY_NOTICES
gh release upload ${{ inputs.version }} ${ARCHIVE}