Skip to content

Commit a9de6b6

Browse files
author
Antonio Vieiro
committed
8336451: [11u] GHA macos-13 and macos-15 builders are unable to resolve local hostname
Reviewed-by: sgehwolf
1 parent 1b0f612 commit a9de6b6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,13 @@ jobs:
132132
echo '/usr/local/opt/make/libexec/gnubin' >> $GITHUB_PATH
133133
if: runner.os == 'macOS'
134134

135+
# Fixes JDK-8336451
136+
- name: 'Update /etc/hosts on macos'
137+
run: |
138+
echo -e "127.0.0.1 $(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
139+
echo -e "" | sudo tee -a /etc/hosts
140+
if: runner.os == 'macOS'
141+
135142
- name: 'Set PATH'
136143
id: path
137144
run: |

0 commit comments

Comments
 (0)