mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-17 01:10:28 +03: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:
parent
89b8d346fe
commit
b0606d90f0
Notes:
sideshowbarker
2024-07-17 06:45:52 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/b0606d90f0 Pull-request: https://github.com/SerenityOS/serenity/pull/17349
6
.github/workflows/cmake.yml
vendored
6
.github/workflows/cmake.yml
vendored
@ -45,6 +45,12 @@ jobs:
|
||||
|
||||
# === OS SETUP ===
|
||||
|
||||
# An attempt to avoid the (fairly common) azure apt mirror downtime.
|
||||
- name: "Select best APT mirror"
|
||||
run: |
|
||||
sudo gem install apt-spy2
|
||||
sudo apt-spy2 fix --commit --launchpad --country=US
|
||||
|
||||
# Do we need to update the package cache first?
|
||||
# sudo apt-get update -qq
|
||||
- name: "Install Ubuntu dependencies"
|
||||
|
5
.github/workflows/libjs-test262.yml
vendored
5
.github/workflows/libjs-test262.yml
vendored
@ -45,6 +45,11 @@ jobs:
|
||||
repository: tc39/test262-parser-tests
|
||||
path: test262-parser-tests
|
||||
|
||||
- name: "Select best APT mirror"
|
||||
run: |
|
||||
sudo gem install apt-spy2
|
||||
sudo apt-spy2 fix --commit --launchpad --country=US
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
|
@ -19,6 +19,11 @@ jobs:
|
||||
wget -q -O - https://files.pvs-studio.com/beta/etc/pubkey.txt | sudo apt-key add -
|
||||
sudo wget -O /etc/apt/sources.list.d/viva64.list https://files.pvs-studio.com/beta/etc/viva64.list
|
||||
|
||||
- name: "Select best APT mirror"
|
||||
run: |
|
||||
sudo gem install apt-spy2
|
||||
sudo apt-spy2 fix --commit --launchpad --country=US
|
||||
|
||||
- name: "Install Ubuntu dependencies"
|
||||
# These packages are already part of the ubuntu-22.04 image:
|
||||
# cmake libgmp-dev npm shellcheck
|
||||
|
6
.github/workflows/serenity-js-artifacts.yml
vendored
6
.github/workflows/serenity-js-artifacts.yml
vendored
@ -26,6 +26,12 @@ jobs:
|
||||
- name: Checkout SerenityOS/serenity
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: "Select best APT mirror"
|
||||
run: |
|
||||
sudo gem install apt-spy2
|
||||
sudo apt-spy2 fix --commit --launchpad --country=US
|
||||
if: ${{ matrix.os == 'ubuntu-22.04' }}
|
||||
|
||||
- name: Install dependencies Ubuntu
|
||||
run: |
|
||||
sudo apt-get update
|
||||
|
@ -53,6 +53,11 @@ jobs:
|
||||
# === OS SETUP ===
|
||||
# TODO: Is there someway to share these steps with the cmake.yml?
|
||||
|
||||
- name: "Select best APT mirror"
|
||||
run: |
|
||||
sudo gem install apt-spy2
|
||||
sudo apt-spy2 fix --commit --launchpad --country=US
|
||||
|
||||
- name: "Install Ubuntu dependencies"
|
||||
# These packages are already part of the ubuntu-22.04 image:
|
||||
# cmake libgmp-dev npm shellcheck
|
||||
|
4
.github/workflows/wasm.yml
vendored
4
.github/workflows/wasm.yml
vendored
@ -17,6 +17,10 @@ jobs:
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: "Select best APT mirror"
|
||||
run: |
|
||||
sudo gem install apt-spy2
|
||||
sudo apt-spy2 fix --commit --launchpad --country=US
|
||||
- name: "Install Ubuntu dependencies"
|
||||
run: |
|
||||
sudo apt-get update
|
||||
|
@ -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 -
|
||||
|
Loading…
Reference in New Issue
Block a user