Added - Added pilot partial navigation for the repository Actions sidebar.
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-container (push) Has been cancelled

This commit is contained in:
2026-05-09 22:01:50 +00:00
parent 75bc9606d5
commit 9cf02aff30
+42
View File
@@ -20,6 +20,45 @@ if ! command -v go > /dev/null 2>&1; then
exit 1
fi
notify_human_interaction() {
local bell_oga="/usr/share/sounds/freedesktop/stereo/bell.oga"
local bell_wav="/usr/share/sounds/alsa/Front_Center.wav"
local in_vscode_terminal=0
local notification_sent=0
if [ "${TERM_PROGRAM:-}" = "vscode" ] || [ -n "${VSCODE_IPC_HOOK_CLI:-}" ] || [ -n "${VSCODE_GIT_IPC_HANDLE:-}" ]; then
in_vscode_terminal=1
fi
if command -v notify-send > /dev/null 2>&1; then
notify-send "Gitea smart-build" "Human input required in smart-build.sh" > /dev/null 2>&1 && notification_sent=1
fi
if command -v canberra-gtk-play > /dev/null 2>&1; then
canberra-gtk-play -i bell > /dev/null 2>&1 && return
fi
if [ -f "$bell_oga" ] && command -v paplay > /dev/null 2>&1; then
paplay "$bell_oga" > /dev/null 2>&1 && return
fi
if [ -f "$bell_wav" ] && command -v aplay > /dev/null 2>&1; then
aplay -q "$bell_wav" > /dev/null 2>&1 && return
fi
if [ -f "$bell_wav" ] && command -v play > /dev/null 2>&1; then
play -q "$bell_wav" > /dev/null 2>&1 && return
fi
if [ -t 1 ]; then
printf '\a'
fi
if [ "$notification_sent" -eq 0 ] && [ "$in_vscode_terminal" -eq 1 ]; then
printf '\033[1;33m%s\033[0m\n' ">>> Human input required below <<<"
fi
}
apply_moderate_build_limits() {
local go_procs="$1"
local node_memory="$2"
@@ -37,6 +76,7 @@ echo "⚙️ Select Build Load Profile:"
echo " Normal keeps the default build behavior."
echo " Moderate limits parallel jobs and keeps CPU/RAM usage lower."
echo " Low Resource is slower, but safest for weaker machines."
notify_human_interaction
load_options=("Normal" "Moderate (GOMAXPROCS=2, make -j1)" "Low Resource (GOMAXPROCS=1, make -j1)" "Quit")
select opt in "${load_options[@]}"
do
@@ -97,6 +137,7 @@ fi
# --- 3. MENIU INTERACTIV PENTRU ARHITECTURĂ ---
echo ""
echo "🎯 Select Arch to build:"
notify_human_interaction
arch_options=("linux-amd64" "linux-armv7" "windows-amd64" "All Arch" "Quit")
select opt in "${arch_options[@]}"
do
@@ -126,6 +167,7 @@ done
echo ""
echo "🏷️ Select Build Tags:"
notify_human_interaction
tag_options=("bindata" "bindata sqlite sqlite_unlock_notify" "Quit")
select opt in "${tag_options[@]}"
do