diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index 8e70f1e7..cd3f39c3 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -72,6 +72,7 @@ jobs: - name: Start X server run: | + if [[ "${{ matrix.CONTAINER }}" =~ "jskrobotics/ros-ubuntu:14.04" ]]; then exit 0; fi echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections || echo "failing on ros-ubuntu is OK" # set non interactive tzdata https://stackoverflow.com/questions/8671308/non-interactive-method-for-dpkg-reconfigure-tzdata sudo apt-get -y -qq install mesa-utils x11-xserver-utils xserver-xorg-video-dummy wget export DISPLAY=:0 @@ -80,6 +81,21 @@ jobs: sleep 3 # wait x server up export QT_X11_NO_MITSHM=1 # http://wiki.ros.org/docker/Tutorials/GUI xhost +local:root + shell: bash + + - name: Start X server (for 14.04) + run: | + if [[ "${{ matrix.CONTAINER }}" =~ "jskrobotics/ros-ubuntu:14.04" ]]; then + echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections || echo "failing on ros-ubuntu is OK" # set non interactive tzdata https://stackoverflow.com/questions/8671308/non-interactive-method-for-dpkg-reconfigure-tzdata + export DISPLAY=:0 + sudo apt-get install -y xvfb libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 + sudo apt-get install -y x11-xserver-utils # for xhost + sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 & + sleep 3 # wait x server up + export QT_X11_NO_MITSHM=1 # http://wiki.ros.org/docker/Tutorials/GUI + xhost +local:root + fi + shell: bash - name: Run jsk_travis uses: jsk-ros-pkg/jsk_travis@master