Skip to content

Commit a41b46c

Browse files
committed
chore: refine SQLx test commands to conditionally include mysql-rsa feature based on TLS configuration
1 parent 0aae66f commit a41b46c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/sqlx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ jobs:
379379
run: >
380380
cargo test
381381
--no-default-features
382-
--features any,mysql,macros,migrate,_unstable-all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
382+
--features any,mysql,${{ matrix.tls == 'none' && 'mysql-rsa,' || '' }}macros,migrate,_unstable-all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
383383
env:
384384
DATABASE_URL: mysql://root:password@localhost:3306/sqlx
385385
SQLX_OFFLINE_DIR: .sqlx
@@ -416,7 +416,7 @@ jobs:
416416
cargo test
417417
--no-default-features
418418
--test mysql-macros
419-
--features any,mysql,macros,migrate,_unstable-all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
419+
--features any,mysql,${{ matrix.tls == 'none' && 'mysql-rsa,' || '' }}macros,migrate,_unstable-all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
420420
env:
421421
DATABASE_URL: mysql://root:password@localhost:3306/sqlx
422422
SQLX_OFFLINE: true

0 commit comments

Comments
 (0)