1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-12-07 05:12:07 -06:00

feature: Store CCACHE cache in CI Cache.

This commit is contained in:
Fijxu
2024-03-14 19:45:27 -03:00
parent e29c55dd98
commit aa20f384dc
3 changed files with 34 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
#!/bin/bash -ex
# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
# SPDX-FileCopyrightText: 2024 suyu Emulator Project
# SPDX-License-Identifier: GPL-2.0-or-later
@@ -6,15 +7,16 @@
# Exit on error, rather than continuing with the rest of the script.
set -e
# Old versions of ccache don't include the -v argument. Keep it only with -s
ccache -s
mkdir build || true && cd build
cmake .. \
-DBoost_USE_STATIC_LIBS=ON \
-DSUYU_USE_PRECOMPILED_HEADERS=OFF \
-DDYNARMIC_USE_PRECOMPILED_HEADERS=OFF \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_CXX_FLAGS="-march=x86-64-v2" \
-DCMAKE_CXX_COMPILER=/usr/lib/ccache/g++ \
-DCMAKE_C_COMPILER=/usr/lib/ccache/gcc \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DDISPLAY_VERSION=$1 \
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=OFF \
@@ -24,6 +26,7 @@ cmake .. \
-DSUYU_USE_BUNDLED_FFMPEG=ON \
-DSUYU_ENABLE_LTO=ON \
-DSUYU_CRASH_DUMPS=ON \
-DUSE_CCACHE=ON \
-GNinja
ninja