ci: switch to Tsinghua mirror for apt-get in CI workflow
Some checks failed
Build Backend / build-docker (push) Has been cancelled
Build Backend / build (push) Has been cancelled

Use Tsinghua University mirror for faster package downloads in China region
This commit is contained in:
lafay
2026-04-27 23:26:57 +08:00
parent fb85c9c20a
commit 496a0103ea

View File

@@ -35,7 +35,10 @@ jobs:
go env GOMODCACHE
- name: Install build tools
run: sudo apt-get update && sudo apt-get install -y gcc
run: |
sudo sed -i 's|http://archive.ubuntu.com|https://mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list
sudo sed -i 's|http://security.ubuntu.com|https://mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list
sudo apt-get update && sudo apt-get install -y gcc
- name: Download dependencies
run: go mod download