Merge pull request #7 from qurious-pixel/patch-3

update ccache
This commit is contained in:
MGThePro 2021-01-22 12:00:20 +01:00 committed by GitHub
commit 2e0deb5e50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 6 deletions

View file

@ -7,8 +7,11 @@ mkdir -p $HOME/.local/share/icons/hicolor/scalable/apps && cp $APPDIR/yuzu.svg $
GITVER=`wget -qO- https://www.github.com/pineappleEA/pineapple-src/releases/tag/continuous | grep pineappleEA/pineapple-src/commit/ | cut -d '"' -f 2 | cut -d '/' -f 5 | awk '!x[$0]++'`
APPVER=`cat $APPDIR/version.txt`
if [ "$GITVER" = "$APPVER" ]; then
if [[ -z "$GITVER" ]]; then
$APPDIR/usr/bin/yuzu
elif [ "$GITVER" = "$APPVER" ]; then
$APPDIR/usr/bin/yuzu
else
$APPDIR/update.sh
fi

View file

@ -12,14 +12,19 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- name: cache
uses: actions/cache@v2
with:
path: $HOME/.ccache
key: build-ccache
path: ~/.ccache
key: build-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: |
build-ccache
build-ccache-
- name: Build binary
run: |
mkdir -p "$HOME/.ccache"

View file

@ -6,7 +6,7 @@ zenity --question --timeout=10 --title="yuzu updater" --text="New update availab
answer=$?
if [ "$answer" -eq 0 ]; then
$APPDIR/usr/bin/AppImageUpdate $PWD/yuzu-x86_64.AppImage
$APPDIR/usr/bin/AppImageUpdate $PWD/yuzu-x86_64.AppImage && $PWD/yuzu-x86_64.AppImage
elif [ "$answer" -eq 1 ]; then
$APPDIR/usr/bin/yuzu
elif [ "$answer" -eq 5 ]; then