Skip to content
This repository was archived by the owner on Oct 28, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/actions/ubuntu-mirrors/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Ubuntu archive mirrors
description: Use Ubuntu's archives without the slow Azure mirror
runs:
using: composite
steps:
- shell: bash
run: |
# Hosted Ubuntu images use this mirror list for all Ubuntu suites.
# Azure transfers can stay slow enough to exhaust the job without
# triggering apt's connection timeout. Keep the other image mirrors.
# https://github.com/actions/runner-images/issues/12949
grep -qF 'mirror+file:/etc/apt/apt-mirrors.txt' /etc/apt/sources.list.d/ubuntu.sources
sudo sed -i '\|^http://azure\.archive\.ubuntu\.com/|d' /etc/apt/apt-mirrors.txt
test -s /etc/apt/apt-mirrors.txt
cat /etc/apt/apt-mirrors.txt
7 changes: 7 additions & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ jobs:
with:
gradle-version: "8.14.4"

- name: Ubuntu archive mirrors
if: runner.os == 'Linux'
uses: ./.github/actions/ubuntu-mirrors

- name: System deps (Linux)
if: runner.os == 'Linux'
run: |
Expand Down Expand Up @@ -321,6 +325,9 @@ jobs:

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0

- name: Ubuntu archive mirrors
uses: ./.github/actions/ubuntu-mirrors

- name: System deps
run: |
sudo apt-get update
Expand Down
Loading