Skip to content

Commit 88e5885

Browse files
committed
WIP rt refactors
1 parent 0e5b9a1 commit 88e5885

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2158
-1145
lines changed

.github/workflows/sqlx.yml

+21-21
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
strategy:
3434
matrix:
3535
runtime: [async-std, tokio, actix]
36-
tls: [native-tls, rustls]
36+
tls: [native, rustls, none]
3737
steps:
3838
- uses: actions/checkout@v2
3939

@@ -53,22 +53,22 @@ jobs:
5353
args: >
5454
--manifest-path sqlx-core/Cargo.toml
5555
--no-default-features
56-
--features offline,all-databases,all-types,migrate,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
56+
--features offline,all-databases,all-types,migrate,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
5757
5858
- uses: actions-rs/cargo@v1
5959
with:
6060
command: check
6161
args: >
6262
--no-default-features
63-
--features offline,all-databases,all-types,migrate,runtime-${{ matrix.runtime }}-${{ matrix.tls }},macros
63+
--features offline,all-databases,all-types,migrate,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }},macros
6464
6565
test:
6666
name: Unit Test
6767
runs-on: ubuntu-20.04
6868
strategy:
6969
matrix:
7070
runtime: [async-std, tokio, actix]
71-
tls: [native-tls, rustls]
71+
tls: [native, rustls, none]
7272
steps:
7373
- uses: actions/checkout@v2
7474

@@ -87,7 +87,7 @@ jobs:
8787
command: test
8888
args: >
8989
--manifest-path sqlx-core/Cargo.toml
90-
--features offline,all-databases,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
90+
--features offline,all-databases,all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
9191
9292
cli:
9393
name: CLI Binaries
@@ -139,7 +139,6 @@ jobs:
139139
strategy:
140140
matrix:
141141
runtime: [async-std, tokio, actix]
142-
tls: [native-tls, rustls]
143142
needs: check
144143
steps:
145144
- uses: actions/checkout@v2
@@ -159,7 +158,7 @@ jobs:
159158
command: test
160159
args: >
161160
--no-default-features
162-
--features any,macros,migrate,sqlite,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
161+
--features any,macros,migrate,sqlite,all-types,runtime-${{ matrix.runtime }}
163162
--
164163
--test-threads=1
165164
env:
@@ -172,7 +171,7 @@ jobs:
172171
matrix:
173172
postgres: [14, 10]
174173
runtime: [async-std, tokio, actix]
175-
tls: [native-tls, rustls]
174+
tls: [native, rustls, none]
176175
needs: check
177176
steps:
178177
- uses: actions/checkout@v2
@@ -195,7 +194,7 @@ jobs:
195194
with:
196195
command: build
197196
args: >
198-
--features postgres,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
197+
--features postgres,all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
199198
200199
- run: |
201200
docker-compose -f tests/docker-compose.yml run -d -p 5432:5432 --name postgres_${{ matrix.postgres }} postgres_${{ matrix.postgres }}
@@ -206,19 +205,20 @@ jobs:
206205
command: test
207206
args: >
208207
--no-default-features
209-
--features any,postgres,macros,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
208+
--features any,postgres,macros,all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
210209
env:
211210
DATABASE_URL: postgres://postgres:password@localhost:5432/sqlx
212211
# FIXME: needed to disable `ltree` tests in Postgres 9.6
213212
# but `PgLTree` should just fall back to text format
214213
RUSTFLAGS: --cfg postgres_${{ matrix.postgres }}
215214

216215
- uses: actions-rs/cargo@v1
216+
if: matrix.tls != 'none'
217217
with:
218218
command: test
219219
args: >
220220
--no-default-features
221-
--features any,postgres,macros,migrate,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
221+
--features any,postgres,macros,migrate,all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
222222
env:
223223
DATABASE_URL: postgres://postgres:password@localhost:5432/sqlx?sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca.crt
224224
# FIXME: needed to disable `ltree` tests in Postgres 9.6
@@ -232,7 +232,7 @@ jobs:
232232
matrix:
233233
mysql: [8, 5_7]
234234
runtime: [async-std, tokio, actix]
235-
tls: [native-tls, rustls]
235+
tls: [native, rustls, none]
236236
needs: check
237237
steps:
238238
- uses: actions/checkout@v2
@@ -251,7 +251,7 @@ jobs:
251251
with:
252252
command: build
253253
args: >
254-
--features mysql,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
254+
--features mysql,all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
255255
256256
- run: docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 mysql_${{ matrix.mysql }}
257257
- run: sleep 60
@@ -261,7 +261,7 @@ jobs:
261261
command: test
262262
args: >
263263
--no-default-features
264-
--features any,mysql,macros,migrate,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
264+
--features any,mysql,macros,migrate,all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
265265
env:
266266
DATABASE_URL: mysql://root:password@localhost:3306/sqlx?ssl-mode=disabled
267267

@@ -272,7 +272,7 @@ jobs:
272272
command: test
273273
args: >
274274
--no-default-features
275-
--features any,mysql,macros,migrate,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
275+
--features any,mysql,macros,migrate,all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
276276
env:
277277
DATABASE_URL: mysql://root:password@localhost:3306/sqlx
278278

@@ -283,7 +283,7 @@ jobs:
283283
matrix:
284284
mariadb: [10_6, 10_3]
285285
runtime: [async-std, tokio, actix]
286-
tls: [native-tls, rustls]
286+
tls: [native, rustls, none]
287287
needs: check
288288
steps:
289289
- uses: actions/checkout@v2
@@ -302,7 +302,7 @@ jobs:
302302
with:
303303
command: build
304304
args: >
305-
--features mysql,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
305+
--features mysql,all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
306306
307307
- run: docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 mariadb_${{ matrix.mariadb }}
308308
- run: sleep 30
@@ -312,7 +312,7 @@ jobs:
312312
command: test
313313
args: >
314314
--no-default-features
315-
--features any,mysql,macros,migrate,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
315+
--features any,mysql,macros,migrate,all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
316316
env:
317317
DATABASE_URL: mysql://root:password@localhost:3306/sqlx
318318

@@ -323,7 +323,7 @@ jobs:
323323
matrix:
324324
mssql: [2019, 2017]
325325
runtime: [async-std, tokio, actix]
326-
tls: [native-tls, rustls]
326+
tls: [native, rustls, none]
327327
needs: check
328328
steps:
329329
- uses: actions/checkout@v2
@@ -342,7 +342,7 @@ jobs:
342342
with:
343343
command: build
344344
args: >
345-
--features mssql,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
345+
--features mssql,all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
346346
347347
- run: docker-compose -f tests/docker-compose.yml run -d -p 1433:1433 mssql_${{ matrix.mssql }}
348348
- run: sleep 80 # MSSQL takes a "bit" to startup
@@ -352,6 +352,6 @@ jobs:
352352
command: test
353353
args: >
354354
--no-default-features
355-
--features any,mssql,macros,migrate,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
355+
--features any,mssql,macros,migrate,all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
356356
env:
357357
DATABASE_URL: mssql://sa:Password123!@localhost/sqlx

Cargo.lock

+6-90
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)