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