From 2dc7e068bff0dbfeaea5bedecc3e2fa58ae14a92 Mon Sep 17 00:00:00 2001 From: Karen <64801825+karenc-bq@users.noreply.github.com> Date: Thu, 5 Sep 2024 05:35:34 +0000 Subject: [PATCH] chore: bump version and update changelog (#211) --- .github/workflows/build-installer.yml | 3 +- .github/workflows/integration.yml | 2 ++ .github/workflows/release.yml | 29 +++++++++++++------ CHANGELOG.md | 8 +++++ build_installer.ps1 | 3 +- .../BuildingTheAwsDriver.md | 6 ++-- version.cmake | 2 +- 7 files changed, 37 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-installer.yml b/.github/workflows/build-installer.yml index fd0663b32..1b7c95ac3 100644 --- a/.github/workflows/build-installer.yml +++ b/.github/workflows/build-installer.yml @@ -4,6 +4,7 @@ on: env: BUILD_TYPE: Release + DRIVER_VERSION: 1.1.0 jobs: build-windows: @@ -64,7 +65,7 @@ jobs: run: | choco upgrade jq -y . ".\sign_installer.ps1" - Invoke-SignInstaller ${{ github.workspace }}\wix winx64a ${{github.ref_name}} ${{ secrets.AWS_UNSIGNED_BUCKET }} ${{ secrets.AWS_SIGNED_BUCKET }} ${{ secrets.AWS_S3_KEY }}aws-mysql-odbc-${{github.ref_name}}-winx64a.msi + Invoke-SignInstaller ${{ github.workspace }}\wix winx64a ${{ env.DRIVER_VERSION}} ${{ secrets.AWS_UNSIGNED_BUCKET }} ${{ secrets.AWS_SIGNED_BUCKET }} ${{ secrets.AWS_S3_KEY }}aws-mysql-odbc-${{ env.DRIVER_VERSION}}-winx64a.msi - name: Upload Windows installer as artifact if: success() diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 4732b4528..f0e0239d6 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -16,6 +16,8 @@ on: - 'docs/**' - 'ISSUE_TEMPLATE/**' - '**/remove-old-artifacts.yml' + - '**/build-installer.yml' + - '**/release.yml' env: BUILD_TYPE: Release diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index beddf634d..3a27a723e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,9 +79,9 @@ jobs: - name: Upload macOS installer as artifact if: success() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: installers + name: installers-mac path: ${{ github.workspace }}/build/aws-mysql-odbc-*.pkg if-no-files-found: error @@ -143,9 +143,9 @@ jobs: - name: Upload Linux installer as artifact if: success() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: installers + name: installers-linux path: ${{ github.workspace }}/build/aws-mysql-odbc-*.tar.gz if-no-files-found: error @@ -165,6 +165,13 @@ jobs: curl -L https://dev.mysql.com/get/Downloads/MySQL-8.3/mysql-${{ vars.MYSQL_VERSION }}-winx64.zip -o mysql.zip unzip -d C:/ mysql.zip + - name: Install OpenSSL 3 + run: | + curl -L https://download.firedaemon.com/FireDaemon-OpenSSL/openssl-3.3.1.zip -o openssl3.zip + unzip -d C:/ openssl3.zip + cp -r C:/openssl-3/x64/bin/libssl-3-x64.dll C:/Windows/System32/ + cp -r C:/openssl-3/x64/bin/libcrypto-3-x64.dll C:/Windows/System32/ + - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v2 @@ -178,7 +185,7 @@ jobs: - name: Run build installer script run: | - .\build_installer.ps1 x64 ${{ env.BUILD_TYPE}} "${{env.CMAKE_GENERATOR}}" C:/mysql-${{ vars.MYSQL_VERSION }}-winx64 "${{env.WIX_DIR}}" + .\build_installer.ps1 x64 ${{ env.BUILD_TYPE}} "${{env.CMAKE_GENERATOR}}" C:/mysql-${{ vars.MYSQL_VERSION }}-winx64 "${{env.WIX_DIR}}" C:/openssl-3/x64/include/ - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4.0.2 @@ -201,9 +208,9 @@ jobs: - name: Upload Windows installer as artifact if: success() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: installers + name: installers-windows path: ${{ github.workspace }}/wix/*.msi if-no-files-found: error @@ -212,10 +219,14 @@ jobs: runs-on: ubuntu-latest needs: [build-mac, build-linux, build-windows] steps: + - name: Checkout source code + uses: actions/checkout@v4 - name: Download all installers uses: actions/download-artifact@v4.1.7 with: - name: installers + path: installers + pattern: installers-* + merge-multiple: true # Get tag version for release - name: Set Version Env Variable @@ -233,5 +244,5 @@ jobs: draft: true name: "AWS ODBC Driver for MySQL - v${{ env.RELEASE_VERSION }}" bodyFile: RELEASE_DETAILS.md - artifacts: "./*.pkg, ./*.tar.gz, ./*.msi" + artifacts: "*/*.pkg, */*.tar.gz, */*.msi" token: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index c80d96b5f..ab53de7bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/#semantic-versioning-200). +## [1.1.0] - 2024-09-04 +### :magic_wand: Added +- [Okta authentication support](./docs/using-the-aws-driver/OktaAuthentication.md). + +### :bug: Fixed +- Access violation error when retrieving driver diagnostic data ([Issue 202](https://github.com/aws/aws-mysql-odbc/issues/202)). + ## [1.0.0] - 2024-07-17 The Amazon Web Services (AWS) ODBC Driver for MySQL allows an application to take advantage of the features of clustered MySQL databases. It is based on and can be used as a drop-in compatible for the MySQL Connector/ODBC driver, and is compatible with all MySQL deployments. +[1.1.0]: https://github.com/aws/aws-mysql-odbc/compare/1.0.0...1.1.0 [1.0.0]: https://github.com/aws/aws-mysql-odbc/releases/tag/1.0.0 diff --git a/build_installer.ps1 b/build_installer.ps1 index 789dfc9bf..a13da6566 100644 --- a/build_installer.ps1 +++ b/build_installer.ps1 @@ -48,6 +48,7 @@ $CONFIGURATION = $args[1] $GENERATOR = $args[2] $MYSQL_DIR = $args[3] $WIX_DIR = $args[4] +$OPENSSL_INCLUDE_DIR = $args[5] # Set default values if ($null -eq $CONFIGURATION) { @@ -58,7 +59,7 @@ if ($null -eq $MYSQL_DIR) { } # BUILD DRIVER -cmake -S . -B ./build -G $GENERATOR -DMYSQL_DIR="$MYSQL_DIR" -DMYSQLCLIENT_STATIC_LINKING=TRUE -DCMAKE_BUILD_TYPE="$CONFIGURATION" -DBUNDLE_DEPENDENCIES=TRUE +cmake -S . -B ./build -G $GENERATOR -DMYSQL_DIR="$MYSQL_DIR" -DMYSQLCLIENT_STATIC_LINKING=TRUE -DCMAKE_BUILD_TYPE="$CONFIGURATION" -DBUNDLE_DEPENDENCIES=TRUE -DOPENSSL_INCLUDE_DIR="$OPENSSL_INCLUDE_DIR" cmake --build ./build --config "$CONFIGURATION" # CREATE INSTALLER diff --git a/docs/building-the-aws-driver/BuildingTheAwsDriver.md b/docs/building-the-aws-driver/BuildingTheAwsDriver.md index 7064e588e..a3ff9f7fd 100644 --- a/docs/building-the-aws-driver/BuildingTheAwsDriver.md +++ b/docs/building-the-aws-driver/BuildingTheAwsDriver.md @@ -14,11 +14,9 @@ cmake -S . -B build -G "Visual Studio 17 2022" -DMYSQL_DIR="C:\Program Files\MySQL\MySQL Server 8.3" -DMYSQLCLIENT_STATIC_LINKING=TRUE cmake --build build --config Release ``` -4. To build the installer, MySQL 8.0.36 is required. Other MySQL versions may not work. Download the [MySQL 8.0.36](https://downloads.mysql.com/archives/community/) ZIP archive or msi installer. If the zip archive is used, unzip it to a folder before using it. - - Run `build_installer.ps1` with specified MySQL 8.0.36 installation or unzipped folder path in a developer powershell. For example +4. To build the installer, run the following command: ``` - .\build_installer.ps1 x64 Release "Visual Studio 17 2022" "C:\Users\MyUser\Downloads\mysql-8.0.36-winx64\mysql-8.0.36-winx64" + .\build_installer.ps1 x64 Release "Visual Studio 17 2022" ``` ### Troubleshooting: diff --git a/version.cmake b/version.cmake index c686b2568..a11b9cafa 100644 --- a/version.cmake +++ b/version.cmake @@ -29,7 +29,7 @@ # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA SET(CONNECTOR_MAJOR "1") -SET(CONNECTOR_MINOR "0") +SET(CONNECTOR_MINOR "1") SET(CONNECTOR_PATCH "0") SET(CONNECTOR_LEVEL "") SET(CONNECTOR_QUALITY "GA")