summaryrefslogtreecommitdiff
path: root/.appveyor.yml
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2017-09-17 14:55:04 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2019-04-18 13:58:11 +0100
commit9c7ebf259f49f5e63906f572a1101747ac023b72 (patch)
treeae94367389ee6e83312347b3d6545253c71df024 /.appveyor.yml
parent16d851375994332844fd434ed91fc6c0c24f8983 (diff)
appveyor: Use ccache
Reduces i686 cygwin no-change build time from ~7 minutes to ~2.5 minutes
Diffstat (limited to '.appveyor.yml')
-rw-r--r--.appveyor.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 2945a8edf..dd244b8db 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -5,18 +5,22 @@ version: '{build}'
skip_tags: true
clone_depth: 8
environment:
+ APPVEYOR_SAVE_CACHE_ON_ERROR: true
CYGWIN_MIRROR: http://cygwin.mirror.constant.com
CACHE: C:\cache
matrix:
- BUILD: i686-pc-cygwin
+ CYGWIN_ROOT: C:\cygwin
+ SETUP: setup-x86.exe
- BUILD: x86_64-pc-cygwin
+ CYGWIN_ROOT: C:\cygwin64
+ SETUP: setup-x86_64.exe
install:
-- if "%BUILD%"=="x86_64-pc-cygwin" set SETUP=setup-x86_64.exe && set CYGWIN_ROOT=C:\cygwin64
-- if "%BUILD%"=="i686-pc-cygwin" set SETUP=setup-x86.exe && set CYGWIN_ROOT=C:\cygwin
- echo Updating Cygwin and installing build prerequisites
- "%CYGWIN_ROOT%\\%SETUP% -qnNdO -R %CYGWIN_ROOT% -s %CYGWIN_MIRROR% -l %CACHE% -g -P \
binutils,\
bison,\
+ccache,\
flex,\
gcc-core,\
meson,\
@@ -66,11 +70,13 @@ xtrans"
- echo Install done
cache:
- C:\cache
+- '%CYGWIN_ROOT%\home\%USERNAME%\.ccache'
build_script:
- SET PATH=%CYGWIN_ROOT%/bin
- '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; meson setup --prefix=/usr -Dxv=false -Dxf86bigfont=true -Ddmx=true -Dxephyr=true -Dxnest=true -Dxvfb=true -Dxwin=true -Dxorg=true -Dhal=false -Dudev=false -Dpciaccess=false -Dint10=false build"'
- '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; meson configure build"'
- '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; ninja -C build"'
+- '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; ccache -s"'
test_script:
- '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; ninja -C build test"'
after_test: