Skip to content

Commit 83f5a0c

Browse files
author
Colin Davidson
committed
Add full clang-tidy job
Added as as internal test to do a full clang-tidy run. It is not run as a PR as it takes too long (about 2 hours).
1 parent efa4725 commit 83f5a0c

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: build_pr_ubuntu_clang_tidy_x86_64
2+
description: Build pr ubuntu clang tidy x86_64
3+
4+
inputs:
5+
cache_seed:
6+
type: boolean
7+
default: false
8+
9+
runs:
10+
using: "composite"
11+
steps:
12+
- name: build host x86_64 online release
13+
uses: ./.github/actions/do_build_ock
14+
with:
15+
build_type: ReleaseAssert
16+
build_targets: check-ock-tidy
17+
extra_flags: -DCMAKE_C_COMPILER=${{ inputs.cmake_cxx_compiler }}${{ github.workspace }}/llvm_install/bin/clang -DCMAKE_CXX_COMPILER=${{ inputs.cmake_cxx_compiler }}${{ github.workspace }}/llvm_install/bin/clang++

.github/workflows/run_ock_internal_tests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,3 +445,31 @@ jobs:
445445
with:
446446
setup_new_target_params: ''
447447
tutorial_point: start
448+
449+
run-ubuntu-clang-tidy-x86_64:
450+
# TODO: Put back !inputs.is_pull_request
451+
# if: ${{ !inputs.is_pull_request && contains(inputs.target_list, 'host_x86_64_linux') }}
452+
if: ${{ contains(inputs.target_list, 'host_x86_64_linux') }}
453+
runs-on: ubuntu-22.04
454+
container:
455+
image: ghcr.io/uxlfoundation/ock_ubuntu_22.04-x86-64:latest
456+
volumes:
457+
- ${{github.workspace}}:${{github.workspace}}
458+
steps:
459+
- name: Checkout repo
460+
uses: actions/checkout@v4
461+
462+
# Install requirements
463+
- name: Install clang-tidy and parallel
464+
run: |
465+
sudo apt-get update
466+
sudo apt-get install --yes clang-tidy-19 parallel
467+
468+
- name: setup-ubuntu
469+
uses: ./.github/actions/setup_build
470+
with:
471+
llvm_version: ${{ inputs.llvm_previous }}
472+
llvm_source: ${{ inputs.llvm_source}}
473+
github_token: ${{ secrets.GITHUB_TOKEN }}
474+
- name: build ock / clang-tidy
475+
uses: ./.github/actions/do_build_pr/run_ubuntu_clang_tidy_x86_64

0 commit comments

Comments
 (0)