File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -325,14 +325,14 @@ jobs:
325325 - name : Install Linux dependencies
326326 if : matrix.platform == 'linux'
327327 run : |
328- sudo apt-get update
329- sudo apt-get install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross
330- sudo apt-get install -y libgl1-mesa-dev xorg-dev
331-
332- # 为 ARM64 交叉编译安装必要的库
328+ # 为 ARM64 交叉编译使用国内镜像源
333329 if [ "${{ matrix.arch }}" == "arm64" ]; then
330+ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --source mirrors.aliyun.com --web-protocol http --intranet false --close-firewall true --backup true --updata-software false --clean-cache false --ignore-backup-tips
331+
334332 sudo dpkg --add-architecture arm64
335333 sudo apt-get update
334+ sudo apt-get install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross
335+ sudo apt-get install -y libgl1-mesa-dev xorg-dev
336336 sudo apt-get install -y \
337337 libgl1-mesa-dev:arm64 \
338338 libx11-dev:arm64 \
@@ -341,6 +341,10 @@ jobs:
341341 libxi-dev:arm64 \
342342 libxcursor-dev:arm64 \
343343 libxinerama-dev:arm64
344+ else
345+ # AMD64 使用默认源
346+ sudo apt-get update
347+ sudo apt-get install -y libgl1-mesa-dev xorg-dev
344348 fi
345349
346350 - name : Configure Git for Private Modules
You can’t perform that action at this time.
0 commit comments