From efe611ed9937f8553b037710c86614fcd9b44f83 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 26 Aug 2025 18:37:18 +0300 Subject: [PATCH] ci: run .github/workflows/disable_azure_mirror.sh before all `apt update` commands, in ci/linux_ci.vsh, when run in a github CI runner --- ci/linux_ci.vsh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ci/linux_ci.vsh b/ci/linux_ci.vsh index a97e3a56ba..3d65610099 100644 --- a/ci/linux_ci.vsh +++ b/ci/linux_ci.vsh @@ -55,6 +55,9 @@ fn build_v_with_prealloc() { // fn install_dependencies_for_examples_and_tools_tcc() { + if common.is_github_job { + exec('.github/workflows/disable_azure_mirror.sh') + } exec('v retry -- sudo apt update') exec('v retry -- sudo apt install --quiet -y libssl-dev sqlite3 libsqlite3-dev valgrind') exec('v retry -- sudo apt install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev libxrandr-dev libasound2-dev') @@ -176,6 +179,9 @@ fn all_code_is_formatted_gcc() { } fn install_dependencies_for_examples_and_tools_gcc() { + if common.is_github_job { + exec('.github/workflows/disable_azure_mirror.sh') + } exec('v retry -- sudo apt update') exec('v retry -- sudo apt install --quiet -y postgresql libpq-dev libssl-dev sqlite3 libsqlite3-dev valgrind') exec('v retry -- sudo apt install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev libxrandr-dev libasound2-dev') @@ -296,6 +302,9 @@ fn all_code_is_formatted_clang() { } fn install_dependencies_for_examples_and_tools_clang() { + if common.is_github_job { + exec('.github/workflows/disable_azure_mirror.sh') + } exec('v retry -- sudo apt update') exec('v retry -- sudo apt install --quiet -y postgresql libpq-dev libssl-dev sqlite3 libsqlite3-dev valgrind') exec('v retry -- sudo apt install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev libxrandr-dev libasound2-dev')