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]++'` 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` 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 $APPDIR/usr/bin/yuzu
else else
$APPDIR/update.sh $APPDIR/update.sh
fi fi

View file

@ -12,14 +12,19 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 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 - name: cache
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: $HOME/.ccache path: ~/.ccache
key: build-ccache key: build-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: | restore-keys: |
build-ccache build-ccache-
- name: Build binary - name: Build binary
run: | run: |
mkdir -p "$HOME/.ccache" mkdir -p "$HOME/.ccache"

View file

@ -6,7 +6,7 @@ zenity --question --timeout=10 --title="yuzu updater" --text="New update availab
answer=$? answer=$?
if [ "$answer" -eq 0 ]; then 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 elif [ "$answer" -eq 1 ]; then
$APPDIR/usr/bin/yuzu $APPDIR/usr/bin/yuzu
elif [ "$answer" -eq 5 ]; then elif [ "$answer" -eq 5 ]; then