11
11
fail-fast : false
12
12
matrix :
13
13
platform :
14
- - " x64-mingw32"
15
14
- " x64-mingw-ucrt"
16
15
- " x86_64-linux-gnu"
17
16
- " x86_64-linux-musl"
26
25
- name : Set up Ruby
27
26
uses : ruby/setup-ruby@v1
28
27
with :
29
- ruby-version : " 2.7 "
28
+ ruby-version : " 3.2 "
30
29
31
30
- name : " Install dependencies"
32
31
run : bundle install
@@ -53,129 +52,13 @@ jobs:
53
52
name : gem-${{ matrix.platform }}
54
53
path : pkg/*.gem
55
54
56
- install-windows-mingw :
57
- needs :
58
- - cross-compile
59
- strategy :
60
- fail-fast : false
61
- matrix :
62
- ruby-version :
63
- - " 2.7"
64
- - " 3.0"
65
-
66
- name : install-windows-mingw
67
- runs-on : windows-latest
68
- steps :
69
- - uses : ruby/setup-ruby@v1
70
- with :
71
- ruby-version : ${{ matrix.ruby-version }}
72
- bundler-cache : true
73
-
74
- - name : Download precompiled gem
75
- uses : actions/download-artifact@v4
76
- with :
77
- name : gem-x64-mingw32
78
-
79
- - name : Install native gem
80
- shell : pwsh
81
- run : gem install "tiny_tds-*.gem"
82
-
83
- - name : Test if TinyTDS loads
84
- shell : pwsh
85
- run : |
86
- ruby -e "require 'tiny_tds'; puts TinyTds::Gem.root_path"
87
- exit $LASTEXITCODE
88
-
89
- - name : Test if tsql wrapper works
90
- shell : pwsh
91
- run : |
92
- tsql-ttds -C
93
- exit $LASTEXITCODE
94
-
95
- - name : Test if defncopy wrapper works
96
- shell : pwsh
97
- run : |
98
- defncopy-ttds -v
99
- exit $LASTEXITCODE
100
-
101
- test-windows-mingw :
102
- needs :
103
- - cross-compile
104
- strategy :
105
- fail-fast : false
106
- matrix :
107
- force-encryption :
108
- - false
109
- - true
110
- mssql-version :
111
- - 2017
112
- - 2019
113
- - 2022
114
- ruby-version :
115
- - " 2.7"
116
- - " 3.0"
117
-
118
- name : test-windows-mingw
119
- runs-on : windows-latest
120
- steps :
121
- - uses : actions/checkout@v4
122
-
123
- - uses : ruby/setup-ruby@v1
124
- with :
125
- ruby-version : ${{ matrix.ruby-version }}
126
- bundler-cache : true
127
-
128
- - name : Download precompiled gem
129
- uses : actions/download-artifact@v4
130
- with :
131
- name : gem-x64-mingw32
132
-
133
- - name : Install native gem and restore cross-compiled code from it
134
- shell : pwsh
135
- run : " & ./test/bin/restore-from-native-gem.ps1"
136
- env :
137
- RUBY_ARCHITECTURE : " x64-mingw32"
138
-
139
- - name : Setup MSSQL
140
- uses : rails-sqlserver/setup-mssql@v1
141
- with :
142
- components : sqlcmd,sqlengine
143
- version : ${{ matrix.mssql-version }}
144
- sa-password : c0MplicatedP@ssword
145
- force-encryption : ${{ matrix.force-encryption }}
146
-
147
- - name : Setup MSSQL database
148
- shell : pwsh
149
- run : |
150
- & sqlcmd -S localhost -U sa -P "c0MplicatedP@ssword" -i ./test/sql/db-create.sql
151
- & sqlcmd -S localhost -U sa -P "c0MplicatedP@ssword" -i ./test/sql/db-login.sql
152
-
153
- - name : Install toxiproxy-server
154
- shell : pwsh
155
- run : |
156
- choco install toxiproxy-server --version=2.5.0 -y
157
- Start-Process toxiproxy-server
158
-
159
- - name : Test gem
160
- shell : pwsh
161
- run : bundle exec rake test
162
- env :
163
- TOXIPROXY_HOST : " localhost"
164
-
165
- - name : Test Summary
166
- uses : test-summary/action@v2
167
- with :
168
- paths : " test/reports/TEST-*.xml"
169
- if : always()
170
-
171
55
install-windows-ucrt :
172
56
needs :
173
57
- cross-compile
174
58
strategy :
175
59
fail-fast : false
176
60
matrix :
177
61
ruby-version :
178
- - " 3.1"
179
62
- " 3.2"
180
63
- " 3.3"
181
64
- " 3.4"
@@ -225,11 +108,9 @@ jobs:
225
108
- false
226
109
- true
227
110
mssql-version :
228
- - 2017
229
111
- 2019
230
112
- 2022
231
113
ruby-version :
232
- - " 3.1"
233
114
- " 3.2"
234
115
- " 3.3"
235
116
- " 3.4"
@@ -256,7 +137,7 @@ jobs:
256
137
RUBY_ARCHITECTURE : " x64-mingw-ucrt"
257
138
258
139
- name : Setup MSSQL
259
- uses : rails-sqlserver/setup-mssql@v1
140
+ uses : rails-sqlserver/setup-mssql@v2
260
141
with :
261
142
components : sqlcmd,sqlengine
262
143
version : ${{ matrix.mssql-version }}
@@ -292,12 +173,6 @@ jobs:
292
173
fail-fast : false
293
174
matrix :
294
175
ruby-version :
295
- # currently fails with a dependency resolution
296
- # looking for conflicting packages...
297
- # :: installing mingw-w64-x86_64-gcc-libs (15.1.0-8) breaks dependency 'mingw-w64-x86_64-gcc-libs=14.2.0-3' required by mingw-w64-x86_64-gcc
298
- # - "2.7"
299
- # - "3.0"
300
- # - "3.1"
301
176
- " 3.2"
302
177
- " 3.3"
303
178
- " 3.4"
@@ -353,25 +228,20 @@ jobs:
353
228
- " aarch64-linux-musl"
354
229
355
230
ruby-version :
356
- - " 2.7"
357
- - " 3.0"
358
- - " 3.1"
359
231
- " 3.2"
360
232
- " 3.3"
361
233
- " 3.4"
362
234
363
235
include :
364
236
- platform : x86_64-linux-musl
365
237
docker_tag : " -alpine"
366
- bootstrap : " apk add -U build-base &&" # required to compile bigdecimal on Ruby 2.7
367
238
368
239
- platform : aarch64-linux-gnu
369
240
docker_platform : " --platform=linux/arm64"
370
241
371
242
- platform : aarch64-linux-musl
372
243
docker_platform : " --platform=linux/arm64"
373
244
docker_tag : " -alpine"
374
- bootstrap : " apk add -U build-base &&"
375
245
376
246
name : install-linux
377
247
runs-on : ubuntu-22.04
@@ -414,9 +284,6 @@ jobs:
414
284
- 2022
415
285
416
286
ruby-version :
417
- - " 2.7"
418
- - " 3.0"
419
- - " 3.1"
420
287
- " 3.2"
421
288
- " 3.3"
422
289
- " 3.4"
@@ -442,7 +309,7 @@ jobs:
442
309
RUBY_ARCHITECTURE : " x86_64-linux-gnu"
443
310
444
311
- name : Setup MSSQL
445
- uses : rails-sqlserver/setup-mssql@v1
312
+ uses : rails-sqlserver/setup-mssql@v2
446
313
with :
447
314
components : sqlcmd,sqlengine
448
315
version : ${{ matrix.mssql-version }}
@@ -476,9 +343,6 @@ jobs:
476
343
fail-fast : false
477
344
matrix :
478
345
ruby-version :
479
- - " 2.7"
480
- - " 3.0"
481
- - " 3.1"
482
346
- " 3.2"
483
347
- " 3.3"
484
348
- " 3.4"
@@ -522,9 +386,6 @@ jobs:
522
386
fail-fast : false
523
387
matrix :
524
388
ruby-version :
525
- - " 2.7"
526
- - " 3.0"
527
- - " 3.1"
528
389
- " 3.2"
529
390
- " 3.3"
530
391
- " 3.4"
@@ -566,7 +427,7 @@ jobs:
566
427
567
428
- uses : ruby/setup-ruby@v1
568
429
with :
569
- ruby-version : " 2.7 "
430
+ ruby-version : " 3.2 "
570
431
bundler-cache : true
571
432
572
433
- name : Check standardrb
0 commit comments