Skip to content

Commit 2b8ac21

Browse files
committed
[skip ci] Fix libmysqlclient build for >=PHP-8.2
Inputs are implicitly coerced to strings...
1 parent a3b5861 commit 2b8ac21

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/actions/build-libmysqlclient/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ runs:
2222
wget -nv $URL
2323
tar -xf $LIBMYSQL --strip-components=1 -C $MYSQL_DIR
2424
PDO_MYSQL=${MYSQL_DIR}
25-
${{ inputs.withMysqli && 'MYSQLI=${MYSQL_DIR}/bin/mysql_config' }}
25+
${{ inputs.withMysqli == 'true' && 'MYSQLI=${MYSQL_DIR}/bin/mysql_config' || '' }}
2626
./buildconf --force
2727
./configure ${{ inputs.configurationParameters }} \
2828
--enable-option-checking=fatal \
2929
--disable-all \
3030
--enable-pdo \
3131
--with-pdo-mysql=${PDO_MYSQL} \
32-
${{ inputs.withMysqli && '--with-mysqli=${MYSQLI}' }}
32+
${{ inputs.withMysqli == 'true' && '--with-mysqli=${MYSQLI}' || '' }}
3333
make clean
3434
make -j$(/usr/bin/nproc) >/dev/null

.github/actions/test-libmysqlclient/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ runs:
88
- shell: bash
99
run: |
1010
set -x
11-
${{ inputs.withMysqli && 'export MYSQL_TEST_USER=root' }}
12-
${{ inputs.withMysqli && 'export MYSQL_TEST_PASSWD=root' }}
11+
${{ inputs.withMysqli == 'true' && 'export MYSQL_TEST_USER=root' || '' }}
12+
${{ inputs.withMysqli == 'true' && 'export MYSQL_TEST_PASSWD=root' || '' }}
1313
export PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
1414
export PDO_MYSQL_TEST_HOST=127.0.0.1
1515
export PDO_MYSQL_TEST_USER=root

0 commit comments

Comments
 (0)