1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:17:44 +00:00

Meta: Automatically select best apt mirror

This is an attempt to avoid issues with the azure ubuntu apt mirror
by using apt-spy2 to select the best mirror before installing
dependencies.
This commit is contained in:
MacDue 2023-02-06 20:08:37 +00:00 committed by Linus Groh
parent 89b8d346fe
commit b0606d90f0
7 changed files with 37 additions and 0 deletions

View file

@ -5,6 +5,12 @@ steps:
- checkout: self
persistCredentials: true
- ${{ if in(parameters.os, 'Linux', 'Serenity', 'Android') }}:
- script: |
sudo gem install apt-spy2
sudo apt-spy2 fix --commit --launchpad --country=US
displayName: 'Select best APT mirror'
- ${{ if eq(parameters.os, 'Serenity') }}:
- script: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -