From 71edd8bc18b37c488b97ff5433fd3c929633ccbb Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Tue, 3 Dec 2024 11:48:53 +0100 Subject: [PATCH] globally set DISPLAY variable --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d1a25ab..fe541e0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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