Skip to content

Commit 2a9b291

Browse files
committed
Use gem unpack to get precompiled extensions on Windows
1 parent 7f51901 commit 2a9b291

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ jobs:
132132
run: |
133133
$rubyArchitecture = (ruby -e "puts RbConfig::CONFIG['arch']").Trim()
134134
$gemVersion = (Get-Content VERSION).Trim()
135-
$gemToInstall = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"
135+
$gemToUnpack = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"
136136
137-
Write-Host "Looking to install $gemToInstall"
138-
gem install --local --install-dir=./tmp "$gemToInstall"
137+
Write-Host "Looking to unpack $gemToUnpack"
138+
gem unpack --target ./tmp "$gemToUnpack"
139139
140140
# Restore precompiled code
141141
$source = (Resolve-Path ".\tmp\gems\tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path
@@ -257,10 +257,10 @@ jobs:
257257
run: |
258258
$rubyArchitecture = (ruby -e "puts RbConfig::CONFIG['arch']").Trim()
259259
$gemVersion = (Get-Content VERSION).Trim()
260-
$gemToInstall = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"
260+
$gemToUnpack = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"
261261
262-
Write-Host "Looking to install $gemToInstall"
263-
gem install --local --install-dir=./tmp "$gemToInstall"
262+
Write-Host "Looking to unpack $gemToUnpack"
263+
gem unpack --target ./tmp "$gemToUnpack"
264264
265265
# Restore precompiled code
266266
$source = (Resolve-Path ".\tmp\gems\tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path

0 commit comments

Comments
 (0)