ci: switch to Tsinghua mirror for apt-get in CI workflow
Use Tsinghua University mirror for faster package downloads in China region
This commit is contained in:
@@ -35,7 +35,10 @@ jobs:
|
|||||||
go env GOMODCACHE
|
go env GOMODCACHE
|
||||||
|
|
||||||
- name: Install build tools
|
- 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
|
- name: Download dependencies
|
||||||
run: go mod download
|
run: go mod download
|
||||||
|
|||||||
Reference in New Issue
Block a user