summaryrefslogtreecommitdiff
path: root/.appveyor.yml
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-01-13 17:44:09 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-02-06 22:23:55 +0900
commit402d76485cfc20ce8307878a84967d75ccc13378 (patch)
treed96c84971ca6575fad64ace1b414f0f0e8ead2da /.appveyor.yml
parentb9083c206aa02a824970e809d66607dd2c1a90f1 (diff)
[MSWin] Install libffi using vcpkg
Diffstat (limited to '.appveyor.yml')
-rw-r--r--.appveyor.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 75cef60dd5..e88245db8e 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -23,7 +23,7 @@ environment:
- build: vs
vs: 120
ssl: OpenSSL
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
+ APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GEMS_FOR_TEST: ""
- build: vs
vs: 140
@@ -31,6 +31,8 @@ environment:
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GEMS_FOR_TEST: ""
RELINE_TEST_ENCODING: "UTF-8"
+cache:
+ - c:\Tools\vcpkg\installed\
for:
-
matrix:
@@ -42,6 +44,12 @@ for:
- SET BITS=%Platform:x86=32%
- SET BITS=%BITS:x=%
- SET OPENSSL_DIR=C:\%ssl%-Win%BITS%
+ - cd C:\Tools\vcpkg
+ - git pull -q
+ - .\bootstrap-vcpkg.bat
+ - cd %APPVEYOR_BUILD_FOLDER%
+ - vcpkg --triplet %Platform%-windows install libffi libyaml readline zlib
+ - set PATH=c:\Tools\vcpkg\installed\%Platform%-windows\bin;%PATH%
- CALL SET vcvars=%%^VS%VS%COMNTOOLS^%%..\..\VC\vcvarsall.bat
- SET vcvars
- '"%vcvars%" %Platform:x64=amd64%'
@@ -72,7 +80,7 @@ for:
- cd %Platform%-mswin_%vs%
- >-
..\win32\configure.bat
- --with-opt-dir=/usr/local
+ --with-opt-dir="/usr/local;c:/Tools/vcpkg/installed/%Platform%-windows"
--with-openssl-dir=%OPENSSL_DIR:\=/%
- nmake -l
- nmake install-nodoc