Skip to content

Commit 3f0a21b

Browse files
committed
libmysql
1 parent 6d5e6f7 commit 3f0a21b

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/push.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,3 +314,54 @@ jobs:
314314
name: profiles
315315
path: ${{ github.workspace }}/benchmark/profiles
316316
retention-days: 30
317+
LIBMYSQLCLIENT:
318+
needs: GENERATE_MATRIX
319+
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}
320+
strategy:
321+
fail-fast: false
322+
matrix:
323+
branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }}
324+
name: "${{ matrix.branch.name }}_LIBMYSQLCLIENT"
325+
runs-on: ubuntu-${{ matrix.branch.version.minor >= 3 && '22.04' || '20.04' }}
326+
steps:
327+
- name: git checkout
328+
uses: actions/checkout@v4
329+
with:
330+
ref: ${{ matrix.branch.ref }}
331+
- name: apt
332+
run: |
333+
sudo apt-get update -y | true
334+
sudo apt install bison re2c
335+
- name: Setup
336+
run: |
337+
sudo service mysql start
338+
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test"
339+
# Ensure local_infile tests can run.
340+
mysql -uroot -proot -e "SET GLOBAL local_infile = true"
341+
- name: Build mysql-8.0
342+
uses: ./.github/actions/build-libmysqlclient
343+
with:
344+
configurationParameters: --enable-werror
345+
libmysql: mysql-8.0.35-linux-glibc2.28-x86_64.tar.xz
346+
withMysqli: ${{ matrix.branch.ref == 'PHP-8.1' }}
347+
- name: Test mysql-8.0
348+
uses: ./.github/actions/test-libmysqlclient
349+
with:
350+
withMysqli: ${{ matrix.branch.ref == 'PHP-8.1' }}
351+
- name: Build mysql-8.2
352+
uses: ./.github/actions/build-libmysqlclient
353+
with:
354+
configurationParameters: --enable-werror
355+
libmysql: mysql-8.2.0-linux-glibc2.28-x86_64.tar.xz
356+
withMysqli: ${{ matrix.branch.ref == 'PHP-8.1' }}
357+
- name: Test mysql-8.2
358+
uses: ./.github/actions/test-libmysqlclient
359+
with:
360+
withMysqli: ${{ matrix.branch.ref == 'PHP-8.1' }}
361+
- name: Verify generated files are up to date
362+
uses: ./.github/actions/verify-generated-files
363+
- name: Notify Slack
364+
if: failure()
365+
uses: ./.github/actions/notify-slack
366+
with:
367+
token: ${{ secrets.ACTION_MONITORING_SLACK }}

0 commit comments

Comments
 (0)