Skip to content

Commit fe43eae

Browse files
committed
chore(Appveyor): More openssl attempts
1 parent 2c6991b commit fe43eae

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

appveyor.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@ init:
1414
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
1515

1616
install:
17-
- ps: >-
18-
appveyor DownloadFile https://dl.bintray.com/oneclick/OpenKnapsack/x64/openssl-1.0.2j-x64-windows.tar.lzma
17+
- ps: |
18+
if ($Env:RUBY_VERSION -match "^23" ) {
19+
# RubyInstaller; download OpenSSL headers from OpenKnapsack Project
20+
$Env:openssl_dir = "C:\Ruby${Env:RUBY_VERSION}"
21+
appveyor DownloadFile http://dl.bintray.com/oneclick/OpenKnapsack/x64/openssl-1.0.2j-x64-windows.tar.lzma
1922
7z e openssl-1.0.2j-x64-windows.tar.lzma
20-
7z x -y openssl-1.0.2j-x64-windows.tar -o C:\ruby23-x64\DevKit\mingw\x86_64-w64-mingw32
21-
# $env:b_config = "--with-ssl-dir=C:/Ruby23-x64/DevKit/mingw --with-opt-include=C:/Ruby23-x64/DevKit/mingw/include"
23+
7z x -y -oC:\Ruby${Env:RUBY_VERSION} openssl-1.0.2j-x64-windows.tar
24+
} else {
25+
# RubyInstaller2; openssl package seems to be installed already
26+
$Env:openssl_dir = "C:\msys64\mingw64"
27+
}
2228
- bundle install
2329
- gem uninstall -a -x --force eventmachine
2430
- gem install eventmachine --platform ruby --no-rdoc --no-ri

0 commit comments

Comments
 (0)