Skip to content

Commit 6a90586

Browse files
committed
refactor(postgres): Retain separate cfg flag for postgres_client_ssl
Signed-off-by: Joshua Potts <[email protected]>
1 parent daab93d commit 6a90586

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/sqlx.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ jobs:
294294

295295
- run: |
296296
docker stop postgres_${{ matrix.postgres }}
297+
298+
- run: |
297299
docker compose -f tests/docker-compose.yml run -d -p 5432:5432 --name postgres_${{ matrix.postgres }}_client_ssl postgres_${{ matrix.postgres }}_client_ssl
298300
docker exec postgres_${{ matrix.postgres }}_client_ssl bash -c "until pg_isready; do sleep 1; done"
299301
@@ -304,7 +306,7 @@ jobs:
304306
--features any,postgres,macros,_unstable-all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
305307
env:
306308
DATABASE_URL: postgres://postgres@localhost:5432/sqlx?sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca.crt&sslkey=.%2Ftests%2Fcerts%2Fkeys%2Fclient.key&sslcert=.%2Ftests%2Fcerts%2Fclient.crt
307-
RUSTFLAGS: --cfg postgres="${{ matrix.postgres }}"
309+
RUSTFLAGS: --cfg postgres_client_ssl
308310

309311
mysql:
310312
name: MySQL

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ level = 'warn'
245245
check-cfg = [
246246
'cfg(mariadb, values(any()))',
247247
'cfg(postgres, values(any()))',
248+
'cfg(postgres_client_ssl)',
248249
'cfg(sqlite_ipaddr)',
249250
'cfg(sqlite_test_sqlcipher)',
250251
]

0 commit comments

Comments
 (0)