Skip to content

Commit

Permalink
action doesn't work. rolling back
Browse files Browse the repository at this point in the history
  • Loading branch information
dmah42 committed Feb 11, 2025
1 parent f5e620b commit eb18c8a
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 26 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/clang-format-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: clang-format-lint
on:
push: {}
pull_request: {}

jobs:
job:
name: check-clang-format
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: DoozyX/[email protected]
with:
source: './include/benchmark ./src ./test'
extensions: 'h,cc'
clangFormatVersion: 12
style: Google
38 changes: 38 additions & 0 deletions .github/workflows/clang-tidy-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: clang-tidy

on:
push: {}
pull_request: {}

jobs:
job:
name: run-clang-tidy
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4

- name: install clang-tidy
run: sudo apt update && sudo apt -y install clang-tidy

- name: create build environment
run: cmake -E make_directory ${{ github.workspace }}/_build

- name: configure cmake
shell: bash
working-directory: ${{ github.workspace }}/_build
run: >
cmake $GITHUB_WORKSPACE
-DBENCHMARK_ENABLE_ASSEMBLY_TESTS=OFF
-DBENCHMARK_ENABLE_LIBPFM=OFF
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON
-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DGTEST_COMPILE_COMMANDS=OFF
- name: run
shell: bash
working-directory: ${{ github.workspace }}/_build
run: run-clang-tidy -config-file=$GITHUB_WORKSPACE/.clang-tidy
26 changes: 0 additions & 26 deletions .github/workflows/cpp-linter.yml

This file was deleted.

0 comments on commit eb18c8a

Please sign in to comment.