From e8b9231f3d7bff70ef11a0d709cc48cc4d9f260a Mon Sep 17 00:00:00 2001 From: Filip Parag Date: Thu, 2 Dec 2021 01:18:13 +0100 Subject: [PATCH] webots headless install --- .github/workflows/ci.yml | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca64b28ff..d1a5bbdae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,26 +5,32 @@ on: pull_request: branches: - main + +env: + WEBOTS_VERSION: 2021b + WEBOTS_OFFSCREEN: 1 + CI: 1 + DEBIAN_FRONTEND: noninteractive + QTWEBENGINE_DISABLE_SANDBOX: 1 + jobs: ros2: name: Build and test ROS 2 packages runs-on: ubuntu-latest - env: - WEBOTS_VERSION: 2021b - WEBOTS_OFFSCREEN: 1 - CI: 1 - DEBIAN_FRONTEND: noninteractive - QTWEBENGINE_DISABLE_SANDBOX: 1 steps: - - uses: actions/checkout@v2 - - uses: ros-tooling/setup-ros@v0.2 + - name: Checkout repository + uses: actions/checkout@v2 + - name: Install ROS2 + uses: ros-tooling/setup-ros@v0.2 with: required-ros-distributions: foxy - - id: webots + - name: Install Webots run: | + sudo -E apt-get update + sudo -E apt-get install -y wget dialog apt-utils psmisc wget "https://github.com/cyberbotics/webots/releases/download/R$WEBOTS_VERSION/webots_${WEBOTS_VERSION}_amd64.deb" - sudo apt-get update - sudo apt-get install -y "./webots_${WEBOTS_VERSION}_amd64.deb" xvfb - - uses: ros-tooling/action-ros-ci@v0.2 + sudo -E apt-get install -y "./webots_${WEBOTS_VERSION}_amd64.deb" xvfb + - name: Build packages and run and tests + uses: ros-tooling/action-ros-ci@v0.2 with: target-ros2-distro: foxy