This commit is contained in:
parent
948928ba20
commit
c0f1c198ca
@ -10,7 +10,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04.1
|
runs-on: ubuntu-latest
|
||||||
# container:
|
# container:
|
||||||
# image: dockerp.com/openjdk:17-jdk-slim # 使用带有 JDK 17 的 Docker 镜像
|
# image: dockerp.com/openjdk:17-jdk-slim # 使用带有 JDK 17 的 Docker 镜像
|
||||||
|
|
||||||
@ -27,10 +27,11 @@ jobs:
|
|||||||
- name: Change Download URL to NJU Mirror
|
- name: Change Download URL to NJU Mirror
|
||||||
run: |
|
run: |
|
||||||
# 替换为 NJU 的 APT 源
|
# 替换为 NJU 的 APT 源
|
||||||
echo "deb https://mirror.nju.edu.cn/ubuntu/ noble main restricted universe multiverse" > /etc/apt/sources.list.d/ubuntu.sources
|
sed -i 's/archive.ubuntu.com/mirrors.nju.edu.cn/g' /etc/apt/sources.list
|
||||||
echo "deb https://mirror.nju.edu.cn/ubuntu/ noble-updates main restricted universe multiverse" >> /etc/apt/sources.list.d/ubuntu.sources
|
# echo "deb https://mirror.nju.edu.cn/ubuntu/ noble main restricted universe multiverse" > /etc/apt/sources.list.d/ubuntu.sources
|
||||||
echo "deb https://mirror.nju.edu.cn/ubuntu/ noble-backports main restricted universe multiverse" >> /etc/apt/sources.list.d/ubuntu.sources
|
# echo "deb https://mirror.nju.edu.cn/ubuntu/ noble-updates main restricted universe multiverse" >> /etc/apt/sources.list.d/ubuntu.sources
|
||||||
echo "deb https://mirror.nju.edu.cn/ubuntu/ noble-security main restricted universe multiverse" >> /etc/apt/sources.list.d/ubuntu.sources
|
# echo "deb https://mirror.nju.edu.cn/ubuntu/ noble-backports main restricted universe multiverse" >> /etc/apt/sources.list.d/ubuntu.sources
|
||||||
|
# echo "deb https://mirror.nju.edu.cn/ubuntu/ noble-security main restricted universe multiverse" >> /etc/apt/sources.list.d/ubuntu.sources
|
||||||
|
|
||||||
# - name: Add missing GPG keys for NJU mirror
|
# - name: Add missing GPG keys for NJU mirror
|
||||||
# run: |
|
# run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user