ci: use TUNA Fedora mirror
Some checks failed
Build Windows Release / Build Windows x64 Release on Linux (MinGW + Qt + OpenCV) (push) Failing after 12s
Some checks failed
Build Windows Release / Build Windows x64 Release on Linux (MinGW + Qt + OpenCV) (push) Failing after 12s
This commit is contained in:
@@ -22,8 +22,21 @@ jobs:
|
||||
PACKAGE_BASENAME: chengnan-windows-x64-mingw
|
||||
|
||||
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
|
||||
run: |
|
||||
set -euo pipefail
|
||||
dnf install -y \
|
||||
git \
|
||||
curl \
|
||||
|
||||
Reference in New Issue
Block a user