Skip to content

Commit 5fbe79a

Browse files
committed
Update installation of bzip2 in windows tests.
1 parent 6562d5f commit 5fbe79a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,15 @@ jobs:
3030
- name: Install bzip2 library
3131
if: matrix.os == 'windows'
3232
run: |
33-
wget https://github.com/philr/bzip2-windows/releases/download/v1.0.8.0/bzip2-dll-1.0.8.0-win-x64.zip
34-
Expand-Archive -Path bzip2-dll-1.0.8.0-win-x64.zip -DestinationPath C:\hostedtoolcache\windows\Ruby\${{ matrix.ruby }}\x64\bin
33+
Invoke-WebRequest `
34+
-Uri https://github.com/philr/bzip2-windows/releases/download/v1.0.8.0/bzip2-dll-1.0.8.0-win-x64.zip `
35+
-OutFile bzip2.zip `
36+
-MaximumRetryCount 10 `
37+
-RetryIntervalSec 2
38+
$RubyBinPath = Split-Path (Get-Command ${{ startsWith(matrix.ruby, 'jruby') && 'j' || '' }}ruby.exe).Path
39+
Write-Host $RubyBinPath
40+
Expand-Archive -Path bzip2.zip -DestinationPath $RubyBinPath -Force
41+
Get-Command bzip2.exe | Format-List
3542
3643
- name: Run the tests
3744
env:

0 commit comments

Comments
 (0)