Skip to content

Commit

Permalink
Revert "ci: merge clang-format and clang-tidy into single pipeline" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro authored Oct 25, 2024
1 parent 9621b64 commit 1391e52
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: clang
name: clang-format

permissions:
contents: write
Expand All @@ -15,8 +15,8 @@ env:
LLVM_VERSION_MAJOR: "18"

jobs:
clang:
name: clang
clang-format:
name: clang-format
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -35,11 +35,6 @@ jobs:
LLVM_VERSION: ${{ env.LLVM_VERSION }}
run: |
bun run clang-format
- name: Clang Tidy
env:
LLVM_VERSION: ${{ env.LLVM_VERSION }}
run: |
bun run clang-tidy:diff
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: clang-tidy

permissions:
contents: write

on:
workflow_call:
workflow_dispatch:
pull_request:
merge_group:

env:
BUN_VERSION: "1.1.27"
LLVM_VERSION: "18.1.8"
LLVM_VERSION_MAJOR: "18"

jobs:
clang-tidy:
name: clang-tidy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: ./.github/actions/setup-bun
with:
bun-version: ${{ env.BUN_VERSION }}
- name: Install LLVM
run: |
curl -fsSL https://apt.llvm.org/llvm.sh | sudo bash -s -- ${{ env.LLVM_VERSION_MAJOR }} all
- name: Clang Tidy
env:
LLVM_VERSION: ${{ env.LLVM_VERSION }}
run: |
bun run clang-tidy:diff
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "`bun run clang-tidy`"

0 comments on commit 1391e52

Please sign in to comment.