Skip to content

Commit dce1b3c

Browse files
committed
Use Chocolatey to install bzip2.dll for Windows tests in CI.
1 parent 6562d5f commit dce1b3c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ 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+
choco install bzip2
34+
dir C:\ProgramData\chocolatey\lib\bzip2\tools
35+
Copy-Item "C:\ProgramData\chocolatey\lib\bzip2\tools\bzip2.dll" -Destination "C:\ProgramData\Chocolatey\bin"
36+
dir C:\ProgramData\Chocolatey
3537
3638
- name: Run the tests
3739
env:

lib/zip/bzip2/ffi/libbz2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module FFI
3737
module Libbz2 # :nodoc:
3838
extend ::FFI::Library
3939

40-
ffi_lib ['bz2', 'libbz2.so.1', 'libbz2.dll']
40+
ffi_lib ['bz2', 'libbz2.so.1', 'libbz2.dll', 'bzip2.dll']
4141

4242
BZ_RUN = 0
4343
BZ_FLUSH = 1

0 commit comments

Comments
 (0)