Skip to content

Commit

Permalink
Problem: Appveyor caches way too much.
Browse files Browse the repository at this point in the history
Currently appveyor caches whole libzmq directory with all sources and
build artifacts (349MB uncompressed).

Solution: install build artifacts to separate `libzmq` directory and
cache only this (~52.70MB uncompressed).
That way we can save some space on shared cache volume that is 1GB
(compressed data) now.
  • Loading branch information
kurdybacha committed Apr 22, 2018
1 parent a87cc96 commit 85d5667
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ environment:
ZMQ_VER: 4.2.5

cache:
- libzmq-%ZMQ_VER% -> appveyor.yml
- libzmq -> appveyor.yml
- Build/tests/googletest -> tests/cmake/googletest-download.cmake

before_build:
- if not exist libzmq-%ZMQ_VER% (
- if not exist libzmq (
appveyor DownloadFile https://github.com/zeromq/libzmq/archive/v%ZMQ_VER%.zip &&
7z x v%ZMQ_VER%.zip >NUL &&
cmake -H./libzmq-%ZMQ_VER% -Blibzmq-%ZMQ_VER%/build -DENABLE_DRAFTS=ON -DWITH_PERF_TOOL=OFF -DZMQ_BUILD_TESTS=OFF -DENABLE_CPACK=OFF -A%PLATFORM% &&
cmake --build libzmq-%ZMQ_VER%/build)
- cmake -H. -BBuild -DCMAKE_PREFIX_PATH=./libzmq-%ZMQ_VER%/build -A%PLATFORM%
cmake -H./libzmq-%ZMQ_VER% -Blibzmq-%ZMQ_VER%/build -CMAKE_INSTALL_PREFIX=libzmq -DENABLE_DRAFTS=ON -DWITH_PERF_TOOL=OFF -DZMQ_BUILD_TESTS=OFF -DENABLE_CPACK=OFF -A%PLATFORM% &&
cmake --build libzmq-%ZMQ_VER%/build --target install)
- cmake -H. -BBuild -DCMAKE_PREFIX_PATH=./libzmq -A%PLATFORM%

build:
project: Build/cppzmq.sln
verbosity: normal

test_script:
- cp libzmq-%ZMQ_VER%/build/bin/%configuration%/libzmq*.dll Build/bin/%configuration%/
- cp libzmq/bin/libzmq*.dll Build/bin/%configuration%/
- cd Build
- ctest -V -C %configuration%

0 comments on commit 85d5667

Please sign in to comment.