From 845718f67aa93c3ffa063a27cbbff19d2f143da9 Mon Sep 17 00:00:00 2001 From: fly6516 Date: Tue, 17 Dec 2024 18:45:38 +0800 Subject: [PATCH] change all download source --- .gitea/workflows/ci.yaml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index a8bd3f6..c015a15 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -17,15 +17,28 @@ jobs: steps: - name: Change Download URL run: | - # 腾讯源 - cat > /etc/apt/sources.list.d/ubuntu.sources<< EOF - Types: deb - URIs: http://mirrors.cloud.tencent.com/ubuntu/ - Suites: noble noble-updates noble-security - Components: main restricted universe multiverse - Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg + cat <<'EOF' > /etc/apt/sources.list + # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 + deb https://mirror.nju.edu.cn/ubuntu/ noble main restricted universe multiverse + # deb-src https://mirror.nju.edu.cn/ubuntu/ noble main restricted universe multiverse + deb https://mirror.nju.edu.cn/ubuntu/ noble-updates main restricted universe multiverse + # deb-src https://mirror.nju.edu.cn/ubuntu/ noble-updates main restricted universe multiverse + deb https://mirror.nju.edu.cn/ubuntu/ noble-backports main restricted universe multiverse + # deb-src https://mirror.nju.edu.cn/ubuntu/ noble-backports main restricted universe multiverse + + # 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换 + # deb https://mirror.nju.edu.cn/ubuntu/ noble-security main restricted universe multiverse + # # deb-src https://mirror.nju.edu.cn/ubuntu/ noble-security main restricted universe multiverse + + deb http://security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse + # deb-src http://security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse + + # 预发布软件源,不建议启用 + # deb https://mirror.nju.edu.cn/ubuntu/ noble-proposed main restricted universe multiverse + # # deb-src https://mirror.nju.edu.cn/ubuntu/ noble-proposed main restricted universe multiverse EOF + - name: Install Node.js run: | # 更新 apt 包管理器并安装必要的工具