@@ -124,18 +124,18 @@ jobs:
124
124
run : |
125
125
$rubyArchitecture = (ruby -e "puts RbConfig::CONFIG['arch']").Trim()
126
126
$gemVersion = (Get-Content VERSION).Trim()
127
- $gemToInstall = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"
127
+ $gemToUnpack = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"
128
128
129
- Write-Host "Looking to install $gemToInstall "
130
- gem install --local --install-dir= ./tmp "$gemToInstall "
129
+ Write-Host "Looking to unpack $gemToUnpack "
130
+ gem unpack --target ./tmp "$gemToUnpack "
131
131
132
132
# Restore precompiled code
133
- $source = (Resolve-Path ".\tmp\gems\ tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path
133
+ $source = (Resolve-Path ".\tmp\tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path
134
134
$destination = (Resolve-Path ".\lib\tiny_tds").Path
135
135
Get-ChildItem $source -Recurse -Exclude "*.rb" | Copy-Item -Destination {Join-Path $destination $_.FullName.Substring($source.length)}
136
136
137
137
# Restore ports
138
- Copy-Item -Path ".\tmp\gems\ tiny_tds-$gemVersion-$rubyArchitecture\ports" -Destination "." -Recurse
138
+ Copy-Item -Path ".\tmp\tiny_tds-$gemVersion-$rubyArchitecture\ports" -Destination "." -Recurse
139
139
140
140
- name : Setup MSSQL
141
141
uses : potatoqualitee/mssqlsuite@v1.7
@@ -245,18 +245,18 @@ jobs:
245
245
run : |
246
246
$rubyArchitecture = (ruby -e "puts RbConfig::CONFIG['arch']").Trim()
247
247
$gemVersion = (Get-Content VERSION).Trim()
248
- $gemToInstall = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"
248
+ $gemToUnpack = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"
249
249
250
- Write-Host "Looking to install $gemToInstall "
251
- gem install --local --install-dir= ./tmp "$gemToInstall "
250
+ Write-Host "Looking to unpack $gemToUnpack "
251
+ gem unpack --target ./tmp "$gemToUnpack "
252
252
253
253
# Restore precompiled code
254
- $source = (Resolve-Path ".\tmp\gems\ tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path
254
+ $source = (Resolve-Path ".\tmp\tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path
255
255
$destination = (Resolve-Path ".\lib\tiny_tds").Path
256
256
Get-ChildItem $source -Recurse -Exclude "*.rb" | Copy-Item -Destination {Join-Path $destination $_.FullName.Substring($source.length)}
257
257
258
258
# Restore ports
259
- Copy-Item -Path ".\tmp\gems\ tiny_tds-$gemVersion-$rubyArchitecture\ports" -Destination "." -Recurse
259
+ Copy-Item -Path ".\tmp\tiny_tds-$gemVersion-$rubyArchitecture\ports" -Destination "." -Recurse
260
260
261
261
- name : Setup MSSQL
262
262
uses : potatoqualitee/mssqlsuite@v1.7
0 commit comments