cache SDL package
Adding to cache removes 4 mins build time.
This commit is contained in:
parent
024c001319
commit
3470d01744
1 changed files with 8 additions and 2 deletions
8
.github/workflows/docker.sh
vendored
8
.github/workflows/docker.sh
vendored
|
@ -14,6 +14,12 @@ find . -name "CMakeLists.txt" ! -path "*/externals/*" -exec sed -i 's/^.*-Werror
|
||||||
find . -name "CMakeLists.txt" ! -path "*/externals/*" -exec sed -i 's/^.*-Werror=.*$/ /g' {} +
|
find . -name "CMakeLists.txt" ! -path "*/externals/*" -exec sed -i 's/^.*-Werror=.*$/ /g' {} +
|
||||||
find . -name "CMakeLists.txt" ! -path "*/externals/*" -exec sed -i 's/-Werror/-W/g' {} +
|
find . -name "CMakeLists.txt" ! -path "*/externals/*" -exec sed -i 's/-Werror/-W/g' {} +
|
||||||
|
|
||||||
|
# Add cache if does not exist
|
||||||
|
if [[ ! -e ~/.ccache ]]; then
|
||||||
|
mkdir ~/.ccache
|
||||||
|
fi
|
||||||
|
CACHEDIR=~/.ccache
|
||||||
|
ls -al $CACHEDIR
|
||||||
###############################################
|
###############################################
|
||||||
# Install SDL
|
# Install SDL
|
||||||
SDL2VER=2.0.18
|
SDL2VER=2.0.18
|
||||||
|
@ -27,7 +33,7 @@ if [[ ! -e SDL2-${SDL2VER} ]]; then
|
||||||
make && cd ../
|
make && cd ../
|
||||||
rm SDL2-${SDL2VER}.tar.gz
|
rm SDL2-${SDL2VER}.tar.gz
|
||||||
fi
|
fi
|
||||||
sudo make -C SDL2-${SDL2VER} install
|
make -C SDL2-${SDL2VER} install
|
||||||
sdl2-config --version
|
sdl2-config --version
|
||||||
cd /yuzu
|
cd /yuzu
|
||||||
###############################################
|
###############################################
|
||||||
|
|
Loading…
Reference in a new issue