Skip to content

Commit

Permalink
webots headless install
Browse files Browse the repository at this point in the history
  • Loading branch information
filiparag committed Dec 2, 2021
1 parent 1205d57 commit e8b9231
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- name: Checkout repository
uses: actions/checkout@v2
- name: Install ROS2
uses: ros-tooling/[email protected]
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/[email protected]
sudo -E apt-get install -y "./webots_${WEBOTS_VERSION}_amd64.deb" xvfb
- name: Build packages and run and tests
uses: ros-tooling/[email protected]
with:
target-ros2-distro: foxy

0 comments on commit e8b9231

Please sign in to comment.