🐛 fix(docker_runner): validate act_runner binary arch

This commit is contained in:
csh
2026-05-22 11:58:01 +08:00
parent 0579c2dc97
commit e5db752c55
3 changed files with 166 additions and 2 deletions
+4
View File
@@ -119,6 +119,10 @@ echo ""
if curl -L "$DOWNLOAD_URL" -o "$INSTALL_PATH"; then
chmod +x "$INSTALL_PATH"
if declare -F validate_binary_arch_or_fail >/dev/null 2>&1; then
validate_binary_arch_or_fail "$INSTALL_PATH" "$RUNNER_ARCH"
fi
# 同时创建软链接到系统路径
ln -sf "$INSTALL_PATH" "$SYSTEM_PATH"