Skip to content

Commit 19a4346

Browse files
committed
Workaround apt-add-repository timeouts
1 parent 8f20ee6 commit 19a4346

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/linux.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,13 @@ jobs:
145145
if: ${{ matrix.cxx == 'clang++-3.6' }}
146146

147147
- name: Add repositories for newer GCC
148+
# Avoid `apt-add-repository ppa:...`, which hits the Launchpad REST API
149+
# and intermittently times out on GitHub-hosted runners.
148150
run: |
149-
sudo apt-add-repository ppa:ubuntu-toolchain-r/test
151+
curl -fsSL 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x60C317803A41BA51845E371A1E9377A2BA9EF27F' \
152+
| sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/ubuntu-toolchain-r.gpg
153+
echo 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu jammy main' \
154+
| sudo tee /etc/apt/sources.list.d/ubuntu-toolchain-r.list
150155
if: ${{ matrix.cxx == 'g++-13' || matrix.cxx == 'g++-15' }}
151156

152157
- name: Install LLVM-20

0 commit comments

Comments
 (0)