From d5dd27fe4d3d88bd0f222ea8b71a517f0bf1370a Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Mon, 15 Feb 2021 10:07:03 +0100 Subject: [PATCH] CI: use the main mirror in the end --- .github/workflows/build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d63848b..feb2e94 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,20 @@ jobs: update: true install: p7zip tar mingw-w64-x86_64-qt-installer-framework + - name: Switch to the main mirror + shell: msys2 {0} + run: | + sed -e "s|Include = /etc/pacman.d/mirrorlist.mingw32|Server = http://repo.msys2.org/mingw/i686/|g" -i /etc/pacman.conf + sed -e "s|Include = /etc/pacman.d/mirrorlist.mingw64|Server = http://repo.msys2.org/mingw/x86_64/|g" -i /etc/pacman.conf + sed -e "s|Include = /etc/pacman.d/mirrorlist.msys|Server = http://repo.msys2.org/msys/\$arch/|g" -i /etc/pacman.conf + pacman-conf.exe + + - name: Update using the main mirror & Check install + run: | + msys2 -c 'pacman --noconfirm -Suuy' + msys2 -c 'pacman --noconfirm -Suu' + msys2 -c 'pacman -Qkq' + - name: Build Installer shell: msys2 {0} run: |