ci: use TUNA Fedora mirror
Some checks failed
Build Windows Release / Build Windows x64 Release on Linux (MinGW + Qt + OpenCV) (push) Failing after 12s

This commit is contained in:
luochen570
2026-05-30 23:20:00 +08:00
parent 573c9d746c
commit 99bc287556

View File

@@ -22,8 +22,21 @@ jobs:
PACKAGE_BASENAME: chengnan-windows-x64-mingw PACKAGE_BASENAME: chengnan-windows-x64-mingw
steps: steps:
- name: Configure Fedora TUNA mirror
run: |
set -euo pipefail
sed -e 's|^metalink=|#metalink=|g' \
-e 's|^#baseurl=http://download.example/pub/fedora/linux|baseurl=https://mirrors.tuna.tsinghua.edu.cn/fedora|g' \
-i /etc/yum.repos.d/fedora*.repo
if [ -f /etc/yum.repos.d/fedora-cisco-openh264.repo ]; then
sed -i 's|^enabled=1|enabled=0|g' /etc/yum.repos.d/fedora-cisco-openh264.repo
fi
dnf clean all
dnf makecache --refresh -y
- name: Install cross build dependencies - name: Install cross build dependencies
run: | run: |
set -euo pipefail
dnf install -y \ dnf install -y \
git \ git \
curl \ curl \