From a9de6b6ae7393fceeefcd0a7b92c1361c324c632 Mon Sep 17 00:00:00 2001 From: Antonio Vieiro Date: Wed, 19 Nov 2025 16:13:18 +0000 Subject: [PATCH] 8336451: [11u] GHA macos-13 and macos-15 builders are unable to resolve local hostname Reviewed-by: sgehwolf --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 36048db517..5192846051 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -132,6 +132,13 @@ jobs: echo '/usr/local/opt/make/libexec/gnubin' >> $GITHUB_PATH if: runner.os == 'macOS' + # Fixes JDK-8336451 + - name: 'Update /etc/hosts on macos' + run: | + echo -e "127.0.0.1 $(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts + echo -e "" | sudo tee -a /etc/hosts + if: runner.os == 'macOS' + - name: 'Set PATH' id: path run: |