fix Download URL to NJU Mirror v6
Some checks failed
Java CI / build (push) Failing after 10s

This commit is contained in:
fly6516 2024-12-17 19:35:13 +08:00
parent 9e1a80d6eb
commit 0308a9a907

View File

@ -40,20 +40,24 @@ jobs:
# # 导入公钥 871920D1991BC93C # # 导入公钥 871920D1991BC93C
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C # apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C
- name: Disable APT signature verification
run: |
echo "Acquire::https::mirror.nju.edu.cn::Verify-Peer false;" | sudo tee /etc/apt/apt.conf.d/99disable-verify
echo "Acquire::https::mirror.nju.edu.cn::Verify-Host false;" | sudo tee -a /etc/apt/apt.conf.d/99disable-verify
- name: Apt Update - name: Apt Update
run: | run: |
apt update --allow-unauthenticated apt update
- name: Install Node.js - name: Install Node.js
run: | run: |
# 更新 apt 包管理器并安装必要的工具 # 更新 apt 包管理器并安装必要的工具
apt-get install -y curl gnupg2 lsb-release ca-certificates --allow-unauthenticated apt-get install -y curl gnupg2 lsb-release ca-certificates
# 安装 Node.js 20.x # 安装 Node.js 20.x
#curl -fsSL https://deb.nodesource.com/setup_20.x | bash - #curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
#apt-get install -y nodejs #apt-get install -y nodejs
apt install nodejs npm --allow-unauthenticated apt install nodejs npm
# 验证安装是否成功 # 验证安装是否成功
node -v node -v