1
0
Fork 0

Add more caching.

This commit is contained in:
NamedKitten 2018-10-16 08:16:41 +01:00
parent c10c6f6169
commit 81d8808ea0
2 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,7 @@ cache:
directories:
- $HOME/.ccache
- $HOME/.cache/apt
- $HOME/.cache/mpv-build
before_install:
- mkdir -p $HOME/.cache/apt/partial

View file

@ -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