From cf2e0116d9a0ff09bba0553fe7b86f48fa82a23b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 11 Aug 2020 17:14:47 +0200 Subject: [PATCH] CI: Properly exclude Azure repositories on Ubuntu Nuke all the pre-defined repos, we just need stock Ubuntu. --- .github/workflows/android_builds.yml | 1 + .github/workflows/javascript_builds.yml | 1 + .github/workflows/linux_builds.yml | 2 ++ .github/workflows/static_checks.yml | 8 +++++++- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android_builds.yml b/.github/workflows/android_builds.yml index c591b4bb39e1..6b16c10b3e76 100644 --- a/.github/workflows/android_builds.yml +++ b/.github/workflows/android_builds.yml @@ -18,6 +18,7 @@ jobs: # Azure repositories are not reliable, we need to prevent azure giving us packages. - name: Make apt sources.list use the default Ubuntu repositories run: | + sudo rm -f /etc/apt/sources.list.d/* sudo cp -f misc/ci/sources.list /etc/apt/sources.list sudo apt-get update diff --git a/.github/workflows/javascript_builds.yml b/.github/workflows/javascript_builds.yml index 421906c77f25..09c4c41d53a9 100644 --- a/.github/workflows/javascript_builds.yml +++ b/.github/workflows/javascript_builds.yml @@ -19,6 +19,7 @@ jobs: # Azure repositories are not reliable, we need to prevent azure giving us packages. - name: Make apt sources.list use the default Ubuntu repositories run: | + sudo rm -f /etc/apt/sources.list.d/* sudo cp -f misc/ci/sources.list /etc/apt/sources.list sudo apt-get update diff --git a/.github/workflows/linux_builds.yml b/.github/workflows/linux_builds.yml index 198727b30e7c..85ae6a5a8f7b 100644 --- a/.github/workflows/linux_builds.yml +++ b/.github/workflows/linux_builds.yml @@ -17,6 +17,7 @@ jobs: # Azure repositories are not reliable, we need to prevent azure giving us packages. - name: Make apt sources.list use the default Ubuntu repositories run: | + sudo rm -f /etc/apt/sources.list.d/* sudo cp -f misc/ci/sources.list /etc/apt/sources.list sudo apt-get update @@ -77,6 +78,7 @@ jobs: # Azure repositories are not reliable, we need to prevent azure giving us packages. - name: Make apt sources.list use the default Ubuntu repositories run: | + sudo rm -f /etc/apt/sources.list.d/* sudo cp -f misc/ci/sources.list /etc/apt/sources.list sudo apt-get update diff --git a/.github/workflows/static_checks.yml b/.github/workflows/static_checks.yml index 2a7a4e6625e7..ee01dba2ba8e 100644 --- a/.github/workflows/static_checks.yml +++ b/.github/workflows/static_checks.yml @@ -9,9 +9,15 @@ jobs: - name: Checkout uses: actions/checkout@v2 + # Azure repositories are not reliable, we need to prevent azure giving us packages. + - name: Make apt sources.list use the default Ubuntu repositories + run: | + sudo rm -f /etc/apt/sources.list.d/* + sudo cp -f misc/ci/sources.list /etc/apt/sources.list + sudo apt-get update + - name: Install dependencies run: | - sudo apt-get update -qq sudo apt-get install -qq dos2unix recode clang-format sudo pip3 install git+https://github.com/psf/black@master pygments