Skip to content

Commit

Permalink
Updated clang-tidy job to use colcon-action
Browse files Browse the repository at this point in the history
  • Loading branch information
marip8 committed Dec 8, 2023
1 parent f61b011 commit c30bdfb
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 60 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/clang_tidy.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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:
before-script: source /opt/tesseract_qt/install/setup.bash
ccache-prefix: ${{ matrix.distro }}
run-tests: false
target-path: target_ws/src
target-args: --cmake-args ${{ matrix.env.TARGET_CMAKE_ARGS }}

0 comments on commit c30bdfb

Please sign in to comment.