File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 30
30
- name : Install bzip2 library
31
31
if : matrix.os == 'windows'
32
32
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
35
42
36
43
- name : Run the tests
37
44
env :
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ module FFI
37
37
module Libbz2 # :nodoc:
38
38
extend ::FFI ::Library
39
39
40
- ffi_lib [ 'bz2' , 'libbz2.so.1' , 'libbz2.dll' ]
40
+ ffi_lib [ 'bz2' , 'libbz2.so.1' , 'libbz2.dll' , 'bzip2.dll' ]
41
41
42
42
BZ_RUN = 0
43
43
BZ_FLUSH = 1
You can’t perform that action at this time.
0 commit comments