Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
globally set DISPLAY variable
Browse files Browse the repository at this point in the history
rhaschke committed Dec 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 4b9d3bc commit 71edd8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ jobs:
env:
BUILDER: colcon
MUJOCO_DIR: /vol/mujoco/mujoco-${{ matrix.mujoco }} # for self-hosted runners
DOCKER_RUN_OPTS: -e MUJOCO_DIR=/root/mujoco/${{ matrix.mujoco }}
DOCKER_RUN_OPTS: -e MUJOCO_DIR=/root/mujoco/${{ matrix.mujoco }} -e DISPLAY=:99.0
DOCKER_IMAGE: ubiagni/mujoco_ros:${{ matrix.distro }}-ci

# For now we have flags defined in the CMakeLists, using all flags makes the build break
@@ -47,7 +47,7 @@ jobs:
CLANG_TIDY_ARGS: --fix --fix-errors --format-style=file
UPSTREAM_WORKSPACE: .github/workflows/upstream.rosinstall
# Install and start xvfb for GLFW
AFTER_INIT: ${{ matrix.render_backend == 'USE_GLFW' && 'apt-get install -qy xvfb mesa-utils; export DISPLAY=:99.0; Xvfb :99 & sleep 1; glxinfo -B' || '' }}
AFTER_INIT: ${{ matrix.render_backend == 'USE_GLFW' && 'apt-get install -qy xvfb mesa-utils; Xvfb :99 & sleep 1; glxinfo -B' || '' }}
BEFORE_RUN_TARGET_TEST: echo $DISPLAY; glxinfo -B
# Pull any updates to the upstream workspace
AFTER_SETUP_UPSTREAM_WORKSPACE: vcs pull $BASEDIR/upstream_ws/src

0 comments on commit 71edd8b

Please sign in to comment.