mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +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:
parent
89b8d346fe
commit
b0606d90f0
7 changed files with 37 additions and 0 deletions
6
.github/workflows/cmake.yml
vendored
6
.github/workflows/cmake.yml
vendored
|
@ -45,6 +45,12 @@ jobs:
|
||||||
|
|
||||||
# === OS SETUP ===
|
# === 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?
|
# Do we need to update the package cache first?
|
||||||
# sudo apt-get update -qq
|
# sudo apt-get update -qq
|
||||||
- name: "Install Ubuntu dependencies"
|
- 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
|
repository: tc39/test262-parser-tests
|
||||||
path: 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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
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 -
|
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
|
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"
|
- name: "Install Ubuntu dependencies"
|
||||||
# These packages are already part of the ubuntu-22.04 image:
|
# These packages are already part of the ubuntu-22.04 image:
|
||||||
# cmake libgmp-dev npm shellcheck
|
# 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
|
- name: Checkout SerenityOS/serenity
|
||||||
uses: actions/checkout@v3
|
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
|
- name: Install dependencies Ubuntu
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
|
@ -53,6 +53,11 @@ jobs:
|
||||||
# === OS SETUP ===
|
# === OS SETUP ===
|
||||||
# TODO: Is there someway to share these steps with the cmake.yml?
|
# 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"
|
- name: "Install Ubuntu dependencies"
|
||||||
# These packages are already part of the ubuntu-22.04 image:
|
# These packages are already part of the ubuntu-22.04 image:
|
||||||
# cmake libgmp-dev npm shellcheck
|
# 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
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
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"
|
- name: "Install Ubuntu dependencies"
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
|
@ -5,6 +5,12 @@ steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
persistCredentials: true
|
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') }}:
|
- ${{ if eq(parameters.os, 'Serenity') }}:
|
||||||
- script: |
|
- script: |
|
||||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue