Skip to content

syyyr/clang-tidy-cache-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

clang-tidy-cache for GitHub Actions

This action downloads and sets up clang-tidy-cache for use on GitHub Actions. This action was inspired by hendrikmuhs/ccache-action.

Usage

name: Lint

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:
  clang-tidy:
    name: clang-tidy
    runs-on: ubuntu-22.04
    steps:
      - name: Clone the repository
        uses: actions/checkout@v4
        with:
          submodules: true

      - name: Set up clang-tidy-cache
        uses: syyyr/clang-tidy-cache-action@v1

      - name: Run the linter
        shell: bash
        run: |
          # create your build directory, e.g. `build`
          clang-tidy-cache clang-tidy -p build src/*