2020-12-29 20:15:51 +01:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
BRANCH=`echo ${GITHUB_REF##*/}`
|
|
|
|
|
2020-12-29 23:52:33 +01:00
|
|
|
ver=$(cat /yuzu/README.md | grep -o 'early-access [[:digit:]]*' | cut -c 14-17)
|
2020-12-29 21:23:31 +01:00
|
|
|
title="yuzu Early Access $ver"
|
2020-12-29 20:15:51 +01:00
|
|
|
|
|
|
|
|
2020-12-29 20:39:55 +01:00
|
|
|
yuzupatch=( $(ls -d patches/* ) )
|
2020-12-29 21:14:44 +01:00
|
|
|
for i in "${yuzupatch[@]}"; do patch -p1 < "$i"; done
|
2020-12-29 20:15:51 +01:00
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
|
2020-12-29 22:23:57 +01:00
|
|
|
cmake .. -G Ninja -DCMAKE_CXX_FLAGS="-W" -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
|
2020-12-29 21:23:31 +01:00
|
|
|
|
|
|
|
ninja
|
|
|
|
|
|
|
|
|
|
|
|
cd /tmp
|
|
|
|
curl -sLO "https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$BRANCH/.github/workflows/appimage.sh"
|
|
|
|
chmod a+x appimage.sh
|
|
|
|
./appimage.sh
|