|
35 | 35 | # Configure build environment/dependencies |
36 | 36 | - name: Install MySQL client libs and include files |
37 | 37 | run: | |
38 | | - curl -L https://dev.mysql.com/get/Downloads/MySQL-8.3/mysql-${{ vars.MYSQL_VERSION }}-winx64.zip -o mysql.zip |
39 | | - curl -L https://dev.mysql.com/get/Downloads/MySQL-8.3/mysql-${{ vars.MYSQL_VERSION }}-winx64-debug-test.zip -o mysql-debug.zip |
| 38 | + curl -L https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-${{ vars.MYSQL_VERSION }}-winx64.zip -o mysql.zip |
| 39 | + curl -L https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-${{ vars.MYSQL_VERSION }}-winx64-debug-test.zip -o mysql-debug.zip |
40 | 40 | unzip -d C:/ mysql.zip |
41 | 41 | mkdir C:/mysql-${{ vars.MYSQL_VERSION }}-winx64-debug |
42 | 42 | unzip -d C:/mysql-${{ vars.MYSQL_VERSION }}-winx64-debug mysql-debug.zip |
@@ -120,97 +120,97 @@ jobs: |
120 | 120 | name: windows-failover-results |
121 | 121 | path: ${{ github.workspace }}/build/unit_testing/Testing/Temporary/LastTest.log |
122 | 122 |
|
123 | | -# build-linux: |
124 | | -# name: Linux |
125 | | -# runs-on: ubuntu-latest |
126 | | -# env: |
127 | | -# CMAKE_GENERATOR: Unix Makefiles |
128 | | -# CXX: g++-11 |
129 | | -# steps: |
130 | | -# - name: Checkout source code |
131 | | -# uses: actions/checkout@v4 |
132 | | -# |
133 | | -# # Configure build environment/dependencies |
134 | | -# - name: Install build dependencies |
135 | | -# run: sudo apt-get update && sudo apt-get install |
136 | | -# g++-11 |
137 | | -# build-essential |
138 | | -# libgtk-3-dev |
139 | | -# unixodbc |
140 | | -# unixodbc-dev |
141 | | -# libcurl4-openssl-dev libssl-dev uuid-dev zlib1g-dev # AWS SDK dependencies |
142 | | -# |
143 | | -# - name: Install MySQL client libs and include files |
144 | | -# run: | |
145 | | -# curl -L https://dev.mysql.com/get/Downloads/MySQL-8.3/mysql-${{ vars.MYSQL_VERSION }}-linux-glibc2.28-x86_64.tar.xz -o mysql.tar.gz |
146 | | -# tar xf mysql.tar.gz |
147 | | -# |
148 | | -# - name: Cache AWS SDK libraries |
149 | | -# id: cache-dynamic-aws-sdk |
150 | | -# uses: actions/cache@v4 |
151 | | -# with: |
152 | | -# path: | |
153 | | -# aws_sdk |
154 | | -# key: ${{ runner.os }}-aws-sdk-dynamic-lib |
155 | | -# |
156 | | -# - name: Build and install AWS SDK C++ |
157 | | -# working-directory: ./scripts |
158 | | -# if: steps.cache-dynamic-aws-sdk.outputs.cache-hit != 'true' |
159 | | -# run: | |
160 | | -# ./build_aws_sdk_unix.sh $LINUX_BUILD_TYPE |
161 | | -# |
162 | | -# - name: Create build environment |
163 | | -# shell: bash |
164 | | -# run: cmake -E make_directory ${{ github.workspace }}/build |
165 | | -# |
166 | | -# - name: Configure CMake |
167 | | -# shell: bash |
168 | | -# run: cmake -S . -B build |
169 | | -# -G "$CMAKE_GENERATOR" |
170 | | -# -DCMAKE_BUILD_TYPE=$LINUX_BUILD_TYPE |
171 | | -# -DMYSQLCLIENT_STATIC_LINKING=true |
172 | | -# -DWITH_UNIXODBC=1 |
173 | | -# -DCONNECTOR_PLATFORM=linux |
174 | | -# -DMYSQL_DIR=./mysql-${{ vars.MYSQL_VERSION }}-linux-glibc2.28-x86_64/ |
175 | | -# -DENABLE_UNIT_TESTS=TRUE |
176 | | -# -DENABLE_INTEGRATION_TESTS=FALSE |
177 | | -# |
178 | | -# - name: copy AWS SDK libraries to driver library |
179 | | -# run: | |
180 | | -# cp ./aws_sdk/install/lib/*.so ./build/lib/ |
181 | | -# |
182 | | -# # Build driver |
183 | | -# - name: Build driver |
184 | | -# working-directory: ${{ github.workspace }}/build |
185 | | -# shell: bash |
186 | | -# run: make -j4 |
187 | | -# |
188 | | -# # Test driver |
189 | | -# - name: Run failover tests on Linux |
190 | | -# if: success() |
191 | | -# working-directory: ${{ github.workspace }}/build/unit_testing |
192 | | -# shell: bash |
193 | | -# run: ctest --output-on-failure |
194 | | -# |
195 | | -# # Upload artifacts |
196 | | -# - name: Upload build artifacts - Binaries |
197 | | -# if: always() |
198 | | -# uses: actions/upload-artifact@v4 |
199 | | -# with: |
200 | | -# name: linux-failover-binaries |
201 | | -# path: ${{ github.workspace }}/build/bin/ |
202 | | -# - name: Upload build artifacts - Libraries |
203 | | -# if: always() |
204 | | -# uses: actions/upload-artifact@v2 |
205 | | -# with: |
206 | | -# name: linux-failover-libraries |
207 | | -# path: ${{ github.workspace }}/build/lib/ |
208 | | -# - name: Upload test artifacts |
209 | | -# if: always() |
210 | | -# uses: actions/upload-artifact@v2 |
211 | | -# with: |
212 | | -# name: linux-failover-results |
213 | | -# path: ${{ github.workspace }}/build/unit_testing/Testing/Temporary/LastTest.log |
| 123 | + build-linux: |
| 124 | + name: Linux |
| 125 | + runs-on: ubuntu-latest |
| 126 | + env: |
| 127 | + CMAKE_GENERATOR: Unix Makefiles |
| 128 | + CXX: g++-11 |
| 129 | + steps: |
| 130 | + - name: Checkout source code |
| 131 | + uses: actions/checkout@v4 |
| 132 | + |
| 133 | + # Configure build environment/dependencies |
| 134 | + - name: Install build dependencies |
| 135 | + run: sudo apt-get update && sudo apt-get install |
| 136 | + g++-11 |
| 137 | + build-essential |
| 138 | + libgtk-3-dev |
| 139 | + unixodbc |
| 140 | + unixodbc-dev |
| 141 | + libcurl4-openssl-dev libssl-dev uuid-dev zlib1g-dev # AWS SDK dependencies |
| 142 | + |
| 143 | + - name: Install MySQL client libs and include files |
| 144 | + run: | |
| 145 | + curl -L https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-${{ vars.MYSQL_VERSION }}-linux-glibc2.28-x86_64.tar.xz -o mysql.tar.gz |
| 146 | + tar xf mysql.tar.gz |
| 147 | +
|
| 148 | + - name: Cache AWS SDK libraries |
| 149 | + id: cache-dynamic-aws-sdk |
| 150 | + uses: actions/cache@v4 |
| 151 | + with: |
| 152 | + path: | |
| 153 | + aws_sdk |
| 154 | + key: ${{ runner.os }}-aws-sdk-dynamic-lib |
| 155 | + |
| 156 | + - name: Build and install AWS SDK C++ |
| 157 | + working-directory: ./scripts |
| 158 | + if: steps.cache-dynamic-aws-sdk.outputs.cache-hit != 'true' |
| 159 | + run: | |
| 160 | + ./build_aws_sdk_unix.sh $LINUX_BUILD_TYPE |
| 161 | +
|
| 162 | + - name: Create build environment |
| 163 | + shell: bash |
| 164 | + run: cmake -E make_directory ${{ github.workspace }}/build |
| 165 | + |
| 166 | + - name: Configure CMake |
| 167 | + shell: bash |
| 168 | + run: cmake -S . -B build |
| 169 | + -G "$CMAKE_GENERATOR" |
| 170 | + -DCMAKE_BUILD_TYPE=$LINUX_BUILD_TYPE |
| 171 | + -DMYSQLCLIENT_STATIC_LINKING=true |
| 172 | + -DWITH_UNIXODBC=1 |
| 173 | + -DCONNECTOR_PLATFORM=linux |
| 174 | + -DMYSQL_DIR=./mysql-${{ vars.MYSQL_VERSION }}-linux-glibc2.28-x86_64/ |
| 175 | + -DENABLE_UNIT_TESTS=TRUE |
| 176 | + -DENABLE_INTEGRATION_TESTS=FALSE |
| 177 | + |
| 178 | + - name: copy AWS SDK libraries to driver library |
| 179 | + run: | |
| 180 | + cp ./aws_sdk/install/lib/*.so ./build/lib/ |
| 181 | +
|
| 182 | + # Build driver |
| 183 | + - name: Build driver |
| 184 | + working-directory: ${{ github.workspace }}/build |
| 185 | + shell: bash |
| 186 | + run: make -j4 |
| 187 | + |
| 188 | + # Test driver |
| 189 | + - name: Run failover tests on Linux |
| 190 | + if: success() |
| 191 | + working-directory: ${{ github.workspace }}/build/unit_testing |
| 192 | + shell: bash |
| 193 | + run: ctest --output-on-failure |
| 194 | + |
| 195 | + # Upload artifacts |
| 196 | + - name: Upload build artifacts - Binaries |
| 197 | + if: always() |
| 198 | + uses: actions/upload-artifact@v4 |
| 199 | + with: |
| 200 | + name: linux-failover-binaries |
| 201 | + path: ${{ github.workspace }}/build/bin/ |
| 202 | + - name: Upload build artifacts - Libraries |
| 203 | + if: always() |
| 204 | + uses: actions/upload-artifact@v2 |
| 205 | + with: |
| 206 | + name: linux-failover-libraries |
| 207 | + path: ${{ github.workspace }}/build/lib/ |
| 208 | + - name: Upload test artifacts |
| 209 | + if: always() |
| 210 | + uses: actions/upload-artifact@v2 |
| 211 | + with: |
| 212 | + name: linux-failover-results |
| 213 | + path: ${{ github.workspace }}/build/unit_testing/Testing/Temporary/LastTest.log |
214 | 214 |
|
215 | 215 | build-mac: |
216 | 216 | name: MacOS |
@@ -250,7 +250,7 @@ jobs: |
250 | 250 |
|
251 | 251 | source /Users/runner/.bash_profile |
252 | 252 | |
253 | | - curl -L https://dev.mysql.com/get/Downloads/MySQL-8.3/mysql-${{ vars.MYSQL_VERSION }}-macos14-x86_64.tar.gz -o mysql.tar.gz |
| 253 | + curl -L https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-${{ vars.MYSQL_VERSION }}-macos14-x86_64.tar.gz -o mysql.tar.gz |
254 | 254 | tar -xzvf mysql.tar.gz |
255 | 255 |
|
256 | 256 | - name: Cache AWS SDK libraries |
|
0 commit comments