diff options
author | MacDue <macdue@dueutil.tech> | 2023-02-06 20:08:37 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-07 13:22:17 +0000 |
commit | b0606d90f0da2fd2651768d1e250a692e3c92abf (patch) | |
tree | cd90ac9a9906bffe22d8cf794f2ce5aecd832018 /.github/workflows | |
parent | 89b8d346fe4e339ac80882d43062d03a71a0d5df (diff) | |
download | serenity-b0606d90f0da2fd2651768d1e250a692e3c92abf.zip |
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.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/cmake.yml | 6 | ||||
-rw-r--r-- | .github/workflows/libjs-test262.yml | 5 | ||||
-rw-r--r-- | .github/workflows/pvs-studio-static-analysis.yml | 5 | ||||
-rw-r--r-- | .github/workflows/serenity-js-artifacts.yml | 6 | ||||
-rw-r--r-- | .github/workflows/sonar-cloud-static-analysis.yml | 5 | ||||
-rw-r--r-- | .github/workflows/wasm.yml | 4 |
6 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 7762519296..69cb59db1c 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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" diff --git a/.github/workflows/libjs-test262.yml b/.github/workflows/libjs-test262.yml index e64b48badb..f37fce314a 100644 --- a/.github/workflows/libjs-test262.yml +++ b/.github/workflows/libjs-test262.yml @@ -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 diff --git a/.github/workflows/pvs-studio-static-analysis.yml b/.github/workflows/pvs-studio-static-analysis.yml index ed3a175255..3554c9774f 100644 --- a/.github/workflows/pvs-studio-static-analysis.yml +++ b/.github/workflows/pvs-studio-static-analysis.yml @@ -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 diff --git a/.github/workflows/serenity-js-artifacts.yml b/.github/workflows/serenity-js-artifacts.yml index 5585f01c3c..61b00f9bf3 100644 --- a/.github/workflows/serenity-js-artifacts.yml +++ b/.github/workflows/serenity-js-artifacts.yml @@ -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 diff --git a/.github/workflows/sonar-cloud-static-analysis.yml b/.github/workflows/sonar-cloud-static-analysis.yml index 086c5fc67a..0b1dac37f0 100644 --- a/.github/workflows/sonar-cloud-static-analysis.yml +++ b/.github/workflows/sonar-cloud-static-analysis.yml @@ -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 diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 2723a0bf0f..dcf3491d96 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -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 |