mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-11-25 09:58:24 -05:00
4e14103b4c
link to conan cached files to speedup build
42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
#!/bin/bash -ex
|
|
|
|
BRANCH=`echo ${GITHUB_REF##*/}`
|
|
|
|
ver=$(cat /yuzu/README.md | grep -o 'early-access [[:digit:]]*' | cut -c 14-17)
|
|
title="yuzu Early Access $ver"
|
|
|
|
ln -s /home/yuzu/.conan /root
|
|
|
|
yuzupatch=( $(ls -d patches/* ) )
|
|
for i in "${yuzupatch[@]}"; do patch -p1 < "$i"; done
|
|
|
|
find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror$/-W/g' {} +
|
|
find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror=.*)$/ )/g' {} +
|
|
find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror=.*$/ /g' {} +
|
|
find . -name "CMakeLists.txt" -exec sed -i 's/-Werror/-W/g' {} +
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake .. \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_C_COMPILER=/usr/lib/ccache/gcc \
|
|
-DCMAKE_CXX_COMPILER=/usr/lib/ccache/g++ \
|
|
-DTITLE_BAR_FORMAT_IDLE="$title" \
|
|
-DTITLE_BAR_FORMAT_RUNNING="$title | {3}" \
|
|
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \
|
|
-DGIT_BRANCH="HEAD" \
|
|
-DGIT_DESC="$msvc" \
|
|
-DUSE_DISCORD_PRESENCE=ON \
|
|
-DENABLE_QT_TRANSLATION=ON \
|
|
-DBUILD_DATE="$build_date" \
|
|
-DYUZU_USE_QT_WEB_ENGINE=OFF \
|
|
-G Ninja
|
|
|
|
ninja
|
|
|
|
|
|
cd /tmp
|
|
curl -sLO "https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$BRANCH/.github/workflows/appimage.sh"
|
|
chmod a+x appimage.sh
|
|
./appimage.sh
|