Skip to content

Commit

Permalink
CI: Enable render backends EGL + GLFW
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Nov 29, 2024
1 parent 63ca74b commit 366203f
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,10 @@ jobs:
mujoco: 3.2.0
env:
CLANG_TIDY: pedantic
exclude:
- distro: one
render_backend: USE_EGL # requires GPU
- distro: one
render_backend: USE_GLFW # requires Xvfb
- distro: noetic
render_backend: USE_GLFW
- distro: noetic
render_backend: USE_EGL

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_IMAGE: ubiagni/mujoco_ros:${{ matrix.distro }}-ci

Expand All @@ -54,6 +46,8 @@ jobs:
CXXFLAGS: -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls
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; export "DISPLAY=:99.0"; Xvfb :99 &' || '' }}
# Pull any updates to the upstream workspace
AFTER_SETUP_UPSTREAM_WORKSPACE: vcs pull $BASEDIR/upstream_ws/src
AFTER_SETUP_DOWNSTREAM_WORKSPACE: vcs pull $BASEDIR/downstream_ws/src
Expand Down Expand Up @@ -81,7 +75,7 @@ jobs:
CCOV: ${{ matrix.env.CCOV || 'false' }}

name: "${{ matrix.distro }} mj-${{ matrix.mujoco }} ${{ matrix.render_backend }} ${{ matrix.env.CATKIN_LINT && ' + catkin_lint' || ''}}${{ matrix.env.CCOV && ' + ccov' || ''}}${{ matrix.env.CLANG_TIDY && (github.event_name != 'workflow_dispatch' && ' + clang-tidy (delta)' || ' + clang-tidy (all)') || '' }}"
runs-on: ubuntu-20.04
runs-on: ${{ matrix.render_backend == 'USE_EGL' && matrix.distro || 'ubuntu-20.04' }}
steps:
- uses: actions/checkout@v4
- name: Cache upstream workspace
Expand Down

0 comments on commit 366203f

Please sign in to comment.