devcontainer: handle hosts without X11 (#29537)

* Setup xauthority link on host in initializeCommand

* Create a dummy xauthority if it does no exist on host machine

* Remove xauthority line from ci test
old-commit-hash: 659795b1db85636a2f97eba7616159047bf0c6e9
This commit is contained in:
Kacper Rączy
2023-08-23 10:26:38 -07:00
committed by GitHub
parent 004a097c95
commit 3681c1d1b2
4 changed files with 20 additions and 4 deletions
+1 -3
View File
@@ -105,8 +105,6 @@ jobs:
- name: Build dev container image
run: devcontainer build --workspace-folder .
- name: Run dev container
run: |
export XAUTHORITY="$HOME/.Xauthority"
devcontainer up --workspace-folder .
run: devcontainer up --workspace-folder .
- name: Test environment
run: devcontainer exec --workspace-folder . scons --dry-run