33
33
runs-on : ubuntu-20.04
34
34
strategy :
35
35
matrix :
36
- runtime : [async-std, tokio, actix ]
37
- tls : [native-tls, rustls]
36
+ runtime : [async-std, tokio]
37
+ tls : [native-tls, rustls, none ]
38
38
steps :
39
39
- uses : actions/checkout@v2
40
40
@@ -54,22 +54,22 @@ jobs:
54
54
args : >
55
55
--manifest-path sqlx-core/Cargo.toml
56
56
--no-default-features
57
- --features offline,all-databases,all-types, migrate,runtime -${{ matrix.runtime }}-${{ matrix.tls }}
57
+ --features json, offline,migrate,_rt -${{ matrix.runtime }},_tls -${{ matrix.tls }}
58
58
59
59
- uses : actions-rs/cargo@v1
60
60
with :
61
61
command : check
62
62
args : >
63
63
--no-default-features
64
- --features offline, all-databases,all-types,migrate, runtime-${{ matrix.runtime }}-${{ matrix.tls }},macros
64
+ --features all-databases,_unstable- all-types,runtime-${{ matrix.runtime }},tls -${{ matrix.tls }},macros
65
65
66
66
test :
67
67
name : Unit Test
68
68
runs-on : ubuntu-20.04
69
69
strategy :
70
70
matrix :
71
- runtime : [async-std, tokio, actix ]
72
- tls : [native-tls, rustls]
71
+ runtime : [async-std, tokio]
72
+ tls : [native-tls, rustls, none ]
73
73
steps :
74
74
- uses : actions/checkout@v2
75
75
88
88
command : test
89
89
args : >
90
90
--manifest-path sqlx-core/Cargo.toml
91
- --features offline,all-databases,all-types,runtime- ${{ matrix.runtime }}-${{ matrix.tls }}
91
+ --features json,_rt- ${{ matrix.runtime }},_tls -${{ matrix.tls }}
92
92
93
93
cli :
94
94
name : CLI Binaries
@@ -139,8 +139,7 @@ jobs:
139
139
runs-on : ubuntu-20.04
140
140
strategy :
141
141
matrix :
142
- runtime : [async-std, tokio, actix]
143
- tls : [native-tls, rustls]
142
+ runtime : [async-std, tokio]
144
143
needs : check
145
144
steps :
146
145
- uses : actions/checkout@v2
@@ -157,16 +156,18 @@ jobs:
157
156
with :
158
157
key : ${{ runner.os }}-sqlite-${{ matrix.runtime }}-${{ matrix.tls }}
159
158
159
+ - run : echo "using ${DATABASE_URL}"
160
+
160
161
- uses : actions-rs/cargo@v1
161
162
with :
162
163
command : test
163
164
args : >
164
165
--no-default-features
165
- --features any,macros,migrate, sqlite,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
166
+ --features any,macros,sqlite,_unstable- all-types,runtime-${{ matrix.runtime }}
166
167
--
167
168
--test-threads=1
168
169
env :
169
- DATABASE_URL : sqlite:// tests/sqlite/sqlite.db
170
+ DATABASE_URL : sqlite:tests/sqlite/sqlite.db
170
171
RUSTFLAGS : --cfg sqlite_ipaddr
171
172
LD_LIBRARY_PATH : /tmp/sqlite3-lib
172
173
@@ -176,8 +177,8 @@ jobs:
176
177
strategy :
177
178
matrix :
178
179
postgres : [14, 10]
179
- runtime : [async-std, tokio, actix ]
180
- tls : [native-tls, rustls]
180
+ runtime : [async-std, tokio]
181
+ tls : [native-tls, rustls, none ]
181
182
needs : check
182
183
steps :
183
184
- uses : actions/checkout@v2
@@ -200,7 +201,7 @@ jobs:
200
201
with :
201
202
command : build
202
203
args : >
203
- --features postgres,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
204
+ --features postgres,_unstable- all-types,runtime-${{ matrix.runtime }},tls -${{ matrix.tls }}
204
205
205
206
- run : |
206
207
docker-compose -f tests/docker-compose.yml run -d -p 5432:5432 --name postgres_${{ matrix.postgres }} postgres_${{ matrix.postgres }}
@@ -211,19 +212,20 @@ jobs:
211
212
command : test
212
213
args : >
213
214
--no-default-features
214
- --features any,postgres,macros,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
215
+ --features any,postgres,macros,_unstable- all-types,runtime-${{ matrix.runtime }},tls -${{ matrix.tls }}
215
216
env :
216
217
DATABASE_URL : postgres://postgres:password@localhost:5432/sqlx
217
218
# FIXME: needed to disable `ltree` tests in Postgres 9.6
218
219
# but `PgLTree` should just fall back to text format
219
220
RUSTFLAGS : --cfg postgres_${{ matrix.postgres }}
220
221
221
222
- uses : actions-rs/cargo@v1
223
+ if : matrix.tls != 'none'
222
224
with :
223
225
command : test
224
226
args : >
225
227
--no-default-features
226
- --features any,postgres,macros,migrate, all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
228
+ --features any,postgres,macros,_unstable- all-types,runtime-${{ matrix.runtime }},tls -${{ matrix.tls }}
227
229
env :
228
230
DATABASE_URL : postgres://postgres:password@localhost:5432/sqlx?sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca.crt
229
231
# FIXME: needed to disable `ltree` tests in Postgres 9.6
@@ -236,8 +238,8 @@ jobs:
236
238
strategy :
237
239
matrix :
238
240
mysql : [8, 5_7]
239
- runtime : [async-std, tokio, actix ]
240
- tls : [native-tls, rustls]
241
+ runtime : [async-std, tokio]
242
+ tls : [native-tls, rustls, none ]
241
243
needs : check
242
244
steps :
243
245
- uses : actions/checkout@v2
@@ -256,7 +258,7 @@ jobs:
256
258
with :
257
259
command : build
258
260
args : >
259
- --features mysql,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
261
+ --features mysql,_unstable- all-types,runtime-${{ matrix.runtime }},tls -${{ matrix.tls }}
260
262
261
263
- run : docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 mysql_${{ matrix.mysql }}
262
264
- run : sleep 60
@@ -266,7 +268,7 @@ jobs:
266
268
command : test
267
269
args : >
268
270
--no-default-features
269
- --features any,mysql,macros,migrate, all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
271
+ --features any,mysql,macros,_unstable- all-types,runtime-${{ matrix.runtime }},tls -${{ matrix.tls }}
270
272
env :
271
273
DATABASE_URL : mysql://root:password@localhost:3306/sqlx?ssl-mode=disabled
272
274
@@ -277,7 +279,7 @@ jobs:
277
279
command : test
278
280
args : >
279
281
--no-default-features
280
- --features any,mysql,macros,migrate, all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
282
+ --features any,mysql,macros,_unstable- all-types,runtime-${{ matrix.runtime }},tls -${{ matrix.tls }}
281
283
env :
282
284
DATABASE_URL : mysql://root:password@localhost:3306/sqlx
283
285
@@ -287,8 +289,8 @@ jobs:
287
289
strategy :
288
290
matrix :
289
291
mariadb : [10_6, 10_3]
290
- runtime : [async-std, tokio, actix ]
291
- tls : [native-tls, rustls]
292
+ runtime : [async-std, tokio]
293
+ tls : [native-tls, rustls, none ]
292
294
needs : check
293
295
steps :
294
296
- uses : actions/checkout@v2
@@ -307,7 +309,7 @@ jobs:
307
309
with :
308
310
command : build
309
311
args : >
310
- --features mysql,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
312
+ --features mysql,_unstable- all-types,runtime-${{ matrix.runtime }},tls -${{ matrix.tls }}
311
313
312
314
- run : docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 mariadb_${{ matrix.mariadb }}
313
315
- run : sleep 30
@@ -317,46 +319,6 @@ jobs:
317
319
command : test
318
320
args : >
319
321
--no-default-features
320
- --features any,mysql,macros,migrate, all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
322
+ --features any,mysql,macros,_unstable- all-types,runtime-${{ matrix.runtime }},tls -${{ matrix.tls }}
321
323
env :
322
324
DATABASE_URL : mysql://root:password@localhost:3306/sqlx
323
-
324
- mssql :
325
- name : MSSQL
326
- runs-on : ubuntu-20.04
327
- strategy :
328
- matrix :
329
- mssql : [2019, 2017]
330
- runtime : [async-std, tokio, actix]
331
- tls : [native-tls, rustls]
332
- needs : check
333
- steps :
334
- - uses : actions/checkout@v2
335
-
336
- - uses : actions-rs/toolchain@v1
337
- with :
338
- profile : minimal
339
- toolchain : stable
340
- override : true
341
-
342
- - uses : Swatinem/rust-cache@v1
343
- with :
344
- key : ${{ runner.os }}-mssql-${{ matrix.runtime }}-${{ matrix.tls }}-${{ hashFiles('**/Cargo.lock') }}
345
-
346
- - uses : actions-rs/cargo@v1
347
- with :
348
- command : build
349
- args : >
350
- --features mssql,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
351
-
352
- - run : docker-compose -f tests/docker-compose.yml run -d -p 1433:1433 mssql_${{ matrix.mssql }}
353
- - run : sleep 80 # MSSQL takes a "bit" to startup
354
-
355
- - uses : actions-rs/cargo@v1
356
- with :
357
- command : test
358
- args : >
359
- --no-default-features
360
- --features any,mssql,macros,migrate,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
361
- env :
362
- DATABASE_URL : mssql://sa:Password123!@localhost/sqlx
0 commit comments