Skip to content

Bump codecov/codecov-action from 4 to 5 #1016

Bump codecov/codecov-action from 4 to 5

Bump codecov/codecov-action from 4 to 5 #1016

Workflow file for this run

name: Clang-Tidy
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-22.04
strategy:
matrix:
cxx: [20, 23, 26]
fail-fast: false
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Update
run: sudo apt update -y
- name: Install LLVM
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18 all
which run-clang-tidy
- name: CMake configure
run: >
cmake -S .
-G "Unix Makefiles"
-B cmake-build-tidy
-D CMAKE_BUILD_TYPE=Debug
-D CMAKE_C_COMPILER="clang-18"
-D CMAKE_CXX_COMPILER="clang++-18"
-D CMAKE_CXX_STANDARD="${{ matrix.cxx }}"
-D CMAKE_EXPORT_COMPILE_COMMANDS=ON
-D TETL_BUILD_WERROR=ON
-D TETL_BUILD_WEVERYTHING=ON
- name: Clang-Tidy check
run: CLANG_VERSION="-18" BUILD_DIR=cmake-build-tidy make tidy-check