From 81d8808ea04545125ed831e2b3ee566f9344a421 Mon Sep 17 00:00:00 2001 From: NamedKitten Date: Tue, 16 Oct 2018 08:16:41 +0100 Subject: [PATCH] Add more caching. --- .travis.yml | 1 + scripts/build-mpv.sh | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e8dc1e5..d7a4f5e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ cache: directories: - $HOME/.ccache - $HOME/.cache/apt + - $HOME/.cache/mpv-build before_install: - mkdir -p $HOME/.cache/apt/partial diff --git a/scripts/build-mpv.sh b/scripts/build-mpv.sh index 9d4148f..90a5c06 100755 --- a/scripts/build-mpv.sh +++ b/scripts/build-mpv.sh @@ -1,11 +1,15 @@ #!/bin/bash set -ex +export OLDDIR=`pwd` + export CFLAGS="-fPIC -Os" export CCACHE_SLOPPINESS=time_macros export CCACHE=`which ccache` +cd $HOME/.cache + git clone --depth 1 https://github.com/mpv-player/mpv-build mpv-build || true cd mpv-build @@ -32,4 +36,4 @@ echo "--disable-caca --disable-wayland --disable-gl-wayland --disable-libarchive ./rebuild -j`nproc` sudo ./install ccache -s -cd .. +cd $OLDDIR