WORKFLOW: fixing persistent build

This commit is contained in:
XargonWan 2023-12-20 11:17:22 +01:00
parent 18a21db83c
commit 679f3be898
2 changed files with 20 additions and 7 deletions

View file

@ -13,21 +13,31 @@ else
fi fi
if [ $PERSISTENCE==true ]; then if [ $PERSISTENCE==true ]; then
mkdir -p "$HOME/cooker-persistent"
GITHUB_WORKSPACE_BACKUP="$GITHUB_WORKSPACE" GITHUB_WORKSPACE_BACKUP="$GITHUB_WORKSPACE"
GITHUB_WORKSPACE="$HOME/cooker-persistent" GITHUB_WORKSPACE="$HOME/cooker-persistent"
fi
mkdir -vp "${GITHUB_WORKSPACE}"/{local,retrodeck-flatpak-cooker} mkdir -vp "${GITHUB_WORKSPACE}"/{local,retrodeck-flatpak-cooker}
flatpak-builder --user --force-clean \ flatpak-builder --user --force-clean \
--install-deps-from=flathub \ --install-deps-from=flathub \
--install-deps-from=flathub-beta \ --install-deps-from=flathub-beta \
--repo="${GITHUB_WORKSPACE}/.local" \ --repo="${GITHUB_WORKSPACE}/.local" \
--download-only \ --download-only \
"${GITHUB_WORKSPACE}/${FOLDER}" \ "${GITHUB_WORKSPACE_BACKUP}/${FOLDER}" \
net.retrodeck.retrodeck.yml net.retrodeck.retrodeck.yml
if [ $PERSISTENCE==true ]; then
GITHUB_WORKSPACE="$GITHUB_WORKSPACE_BACKUP" GITHUB_WORKSPACE="$GITHUB_WORKSPACE_BACKUP"
else
mkdir -vp "${GITHUB_WORKSPACE}"/{local,retrodeck-flatpak-cooker}
flatpak-builder --user --force-clean \
--install-deps-from=flathub \
--install-deps-from=flathub-beta \
--repo="${GITHUB_WORKSPACE}/.local" \
--download-only \
"${GITHUB_WORKSPACE}/${FOLDER}" \
net.retrodeck.retrodeck.yml
fi fi

View file

@ -13,10 +13,13 @@ else
fi fi
if [ $PERSISTENCE==true ]; then if [ $PERSISTENCE==true ]; then
mkdir -p "$HOME/cooker-persistent"
GITHUB_WORKSPACE_BACKUP="$GITHUB_WORKSPACE" GITHUB_WORKSPACE_BACKUP="$GITHUB_WORKSPACE"
GITHUB_WORKSPACE="$HOME/cooker-persistent" GITHUB_WORKSPACE="$HOME/cooker-persistent"
mkdir -vp ${GITHUB_WORKSPACE}/.local
mkdir -vp ${GITHUB_WORKSPACE}/"$FOLDER"
flatpak-builder --user --force-clean \ flatpak-builder --user --force-clean \
--install-deps-from=flathub \ --install-deps-from=flathub \
--install-deps-from=flathub-beta \ --install-deps-from=flathub-beta \