File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 5
5
required : false
6
6
libmysql :
7
7
required : true
8
+ withMysqli :
9
+ required : true
8
10
runs :
9
11
using : composite
10
12
steps :
@@ -20,13 +22,13 @@ runs:
20
22
wget -nv $URL
21
23
tar -xf $LIBMYSQL --strip-components=1 -C $MYSQL_DIR
22
24
PDO_MYSQL=${MYSQL_DIR}
23
- MYSQLI=${MYSQL_DIR}/bin/mysql_config
25
+ ${{ inputs.withMysqli && ' MYSQLI=${MYSQL_DIR}/bin/mysql_config' }}
24
26
./buildconf --force
25
27
./configure ${{ inputs.configurationParameters }} \
26
28
--enable-option-checking=fatal \
27
29
--disable-all \
28
30
--enable-pdo \
29
31
--with-pdo-mysql=${PDO_MYSQL} \
30
- --with-mysqli=${MYSQLI}
32
+ ${{ inputs.withMysqli && ' --with-mysqli=${MYSQLI}' } }
31
33
make clean
32
34
make -j$(/usr/bin/nproc) >/dev/null
Original file line number Diff line number Diff line change 1
1
name : Test libmysqlclient
2
+ inputs :
3
+ withMysqli :
4
+ required : true
2
5
runs :
3
6
using : composite
4
7
steps :
5
8
- shell : bash
6
9
run : |
7
10
set -x
8
- export MYSQL_TEST_USER=root
9
- export MYSQL_TEST_PASSWD=root
11
+ ${{ inputs.withMysqli && ' export MYSQL_TEST_USER=root' }}
12
+ ${{ inputs.withMysqli && ' export MYSQL_TEST_PASSWD=root' }}
10
13
export PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
11
14
export PDO_MYSQL_TEST_HOST=127.0.0.1
12
15
export PDO_MYSQL_TEST_USER=root
Original file line number Diff line number Diff line change @@ -467,6 +467,8 @@ jobs:
467
467
fail-fast : false
468
468
matrix :
469
469
branch : ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }}
470
+ exclude :
471
+ - branch : { name: 'PHP-80', ref: 'PHP-8.0' }
470
472
name : " ${{ matrix.branch.name }}_LIBMYSQLCLIENT"
471
473
runs-on : ubuntu-20.04
472
474
steps :
@@ -495,15 +497,21 @@ jobs:
495
497
uses : ./.github/actions/build-libmysqlclient
496
498
with :
497
499
libmysql : mysql-5.7.38-linux-glibc2.12-x86_64.tar.gz
500
+ withMysqli : ${{ matrix.branch.ref == 'PHP-8.1' }}
498
501
- name : Test mysql-5.7
499
502
uses : ./.github/actions/test-libmysqlclient
503
+ with :
504
+ withMysqli : ${{ matrix.branch.ref == 'PHP-8.1' }}
500
505
- name : Build mysql-8.0
501
506
uses : ./.github/actions/build-libmysqlclient
502
507
with :
503
508
# FIXME: There are new warnings
504
509
# configurationParameters: --enable-werror
505
510
libmysql : mysql-8.0.30-linux-glibc2.12-x86_64.tar.xz
511
+ withMysqli : ${{ matrix.branch.ref == 'PHP-8.1' }}
506
512
- name : Test mysql-8.0
507
513
uses : ./.github/actions/test-libmysqlclient
514
+ with :
515
+ withMysqli : ${{ matrix.branch.ref == 'PHP-8.1' }}
508
516
- name : Verify generated files are up to date
509
517
uses : ./.github/actions/verify-generated-files
You can’t perform that action at this time.
0 commit comments