mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
CACHING: removed actual local build caching system (to be rewritten)
This commit is contained in:
parent
17d0f6a847
commit
912d8c28ca
|
@ -189,8 +189,7 @@ handle_thisrepo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Process the task list
|
# Process the task list
|
||||||
if [ "$use_cached" != "y" ]; then
|
while IFS="^" read -r action placeholder url branch || [[ -n "$action" ]]; do
|
||||||
while IFS="^" read -r action placeholder url branch || [[ -n "$action" ]]; do
|
|
||||||
if [[ ! "$action" == "#"* ]] && [[ -n "$action" ]]; then
|
if [[ ! "$action" == "#"* ]] && [[ -n "$action" ]]; then
|
||||||
case "$action" in
|
case "$action" in
|
||||||
"branch" ) handle_branch "$placeholder" ;;
|
"branch" ) handle_branch "$placeholder" ;;
|
||||||
|
@ -206,5 +205,4 @@ if [ "$use_cached" != "y" ]; then
|
||||||
"THISREPO" ) handle_thisrepo "$placeholder" ;;
|
"THISREPO" ) handle_thisrepo "$placeholder" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
done < "$automation_task_list"
|
done < "$automation_task_list"
|
||||||
fi
|
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
# WARNING: run this script from the project root folder, not from here!!
|
# WARNING: run this script from the project root folder, not from here!!
|
||||||
|
|
||||||
# Check if script is running with elevated privileges
|
# Check if script is running with elevated privileges
|
||||||
if [ "$EUID" -ne 0 ]; then
|
# if [ "$EUID" -ne 0 ]; then
|
||||||
read -rp "The build might fail without some superuser permissions, please run me with sudo. Continue WITHOUT sudo (not suggested)? [y/N] " continue_without_sudo
|
# read -rp "The build might fail without some superuser permissions, please run me with sudo. Continue WITHOUT sudo (not suggested)? [y/N] " continue_without_sudo
|
||||||
if [[ "$continue_without_sudo" != "y" ]]; then
|
# if [[ "$continue_without_sudo" != "y" ]]; then
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
|
@ -21,19 +21,6 @@ ostree init --mode=archive-z2 --repo=${GITHUB_WORKSPACE}/retrodeck-repo
|
||||||
cp net.retrodeck.retrodeck.appdata.xml net.retrodeck.retrodeck.appdata.xml.bak
|
cp net.retrodeck.retrodeck.appdata.xml net.retrodeck.retrodeck.appdata.xml.bak
|
||||||
cp net.retrodeck.retrodeck.yml net.retrodeck.retrodeck.yml.bak
|
cp net.retrodeck.retrodeck.yml net.retrodeck.retrodeck.yml.bak
|
||||||
|
|
||||||
if [[ -f "net.retrodeck.retrodeck.cached.yml" ]]; then
|
|
||||||
read -rp "A cached manifest file with placeholder substitutions already exists. Do you want to use it? [y/N] " use_cached
|
|
||||||
if [[ "${use_cached,,}" == "y" ]]; then
|
|
||||||
mv -f net.retrodeck.retrodeck.cached.yml net.retrodeck.retrodeck.yml
|
|
||||||
else
|
|
||||||
use_cached="n"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
use_cached="n"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export use_cached
|
|
||||||
|
|
||||||
automation_tools/install_dependencies.sh
|
automation_tools/install_dependencies.sh
|
||||||
automation_tools/cooker_build_id.sh
|
automation_tools/cooker_build_id.sh
|
||||||
automation_tools/pre_build_automation.sh
|
automation_tools/pre_build_automation.sh
|
||||||
|
|
Loading…
Reference in a new issue