Configure aqtinstall to use a mirror

This commit is contained in:
Dan Paulat 2025-04-15 22:52:33 -05:00
parent 44c37a8435
commit d34224c135
3 changed files with 22 additions and 1 deletions

View file

@ -104,6 +104,8 @@ jobs:
- name: Install Qt
uses: jdpurcell/install-qt-action@v5
env:
AQT_CONFIG: ${{ github.workspace }}/source/tools/aqt-settings.ini
with:
version: ${{ matrix.qt_version }}
arch: ${{ matrix.qt_arch_aqt }}

View file

@ -48,7 +48,9 @@ jobs:
path: clang-tidy-review
- name: Install Qt
uses: jurplel/install-qt-action@v4
uses: jdpurcell/install-qt-action@v5
env:
AQT_CONFIG: ${{ github.workspace }}/source/tools/aqt-settings.ini
with:
version: ${{ matrix.qt_version }}
arch: ${{ matrix.qt_arch_aqt }}

17
tools/aqt-settings.ini Normal file
View file

@ -0,0 +1,17 @@
[aqt]
# Using this mirror instead of download.qt.io because of timeouts in CI
# Below is the default URL of the mirror
# baseurl: https://download.qt.io
baseurl: https://qt.mirror.constant.com
[requests]
# Mirrors require sha1 instead of sha256
hash_algorithm: sha1
[mirrors]
trusted_mirrors:
https://qt.mirror.constant.com
fallbacks:
https://qt.mirror.constant.com
https://mirrors.ocf.berkeley.edu
https://download.qt.io