Skip to content

Commit 18d447d

Browse files
committed
macOS CI: implement workaround for random nxdomain issue
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
1 parent 05f34f9 commit 18d447d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-and-test-macos.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ jobs:
6565
fi
6666
done
6767
68+
- name: "Workaround for nxdomain random issues"
69+
run: |
70+
# https://github.com/actions/runner-images/issues/8649#issuecomment-2231240347
71+
for host in "$(hostname)" "$(hostname -f)"; do
72+
echo -e "$(ipconfig getifaddr en0) $(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
73+
dscacheutil -q host -a name $(hostname -f)
74+
done
75+
6876
# Builder info
6977
- name: "System info"
7078
run: |

0 commit comments

Comments
 (0)