Skip to content

Commit ef0f5c6

Browse files
jbachorikclaude
andcommitted
Force apt IPv4 in aarch64 Setup OS to avoid dead IPv6 route to ports.ubuntu.com
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 3de7989 commit ef0f5c6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/test_workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ jobs:
387387
- name: Setup OS
388388
if: steps.set_enabled.outputs.enabled == 'true'
389389
run: |
390+
# ports.ubuntu.com's IPv6 route is intermittently unreachable from GH-hosted
391+
# aarch64 runners; force IPv4 so apt doesn't stall/fail on a dead IPv6 path.
392+
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4 >/dev/null
390393
sudo apt update -y
391394
sudo apt remove -y g++
392395
sudo apt autoremove -y

0 commit comments

Comments
 (0)