Skip to content

Commit f6230c3

Browse files
committed
8336451: [11u] GHA macos-13 and macos-15 builders are unable to resolve local hostname
1 parent e3256d6 commit f6230c3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/submit.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,12 @@ jobs:
15331533
- name: Select Xcode version
15341534
run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app/Contents/Developer
15351535

1536+
# Fixes JDK-8336451
1537+
- name: 'Update /etc/hosts on macos'
1538+
run: |
1539+
echo -e "127.0.0.1 $(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
1540+
echo -e "" | sudo tee -a /etc/hosts
1541+
15361542
- name: Run tests
15371543
run: >
15381544
chmod +x "${HOME}/jtreg/bin/jtreg" &&

0 commit comments

Comments
 (0)