Skip to content

Updated CI to be based on tesseract_planning CI docker image #2

Updated CI to be based on tesseract_planning CI docker image

Updated CI to be based on tesseract_planning CI docker image #2

Workflow file for this run

name: Code Quality
on:
push:
branches:
- master
pull_request:
paths:
- 'tesseract**'
- '.github/workflows/code_quality.yml'
schedule:
- cron: '0 5 * * *'
jobs:
ci:
name: ${{ matrix.job_type }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- os: focal
env:
TARGET_CMAKE_ARGS: "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=Debug -DTESSERACT_ENABLE_CLANG_TIDY=ON -DTESSERACT_ENABLE_TESTING=ON"
container:
image: ghcr.io/tesseract-robotics/tesseract_qt:{{ matrix.os }}-0.21
env:
CCACHE_DIR: "${{ github.workspace }}/${{ matrix.os }}/.ccache"
DEBIAN_FRONTEND: noninteractive
TZ: Etc/UTC
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: target_ws/src
- name: Install Depends
shell: bash
run: |
apt update
apt upgrade -y
apt install -y clang-tidy
- name: Build and Tests
uses: tesseract-robotics/colcon-action@v2
with:
ros-enabled: true
before-script: source /opt/tesseract_qt/install/setup.bash && source /opt/ros/${{ matrix.distro }}/setup.bash
ccache-prefix: ${{ matrix.distro }}
run-tests: false
target-path: target_ws/src
target-args: --cmake-args ${{ matrix.env.TARGET_CMAKE_ARGS }}