Skip to content

Commit

Permalink
ci: split the workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Feb 13, 2025
1 parent 38552d2 commit c748d09
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 12 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/format-check-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Format Suggestions

on:
push:
branches:
- main
tags: '*'
paths:
- '.github/workflows/format-check-cpp.yml'
- '**/*.cpp'
- '**/*.h'
pull_request:
paths:
- '.github/workflows/format-check-cpp.yml'
- '**/*.cpp'
- '**/*.h'

concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: always.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
code-style-cpp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DoozyX/clang-format-lint-action@v0.18.2
with:
source: 'deps'
12 changes: 0 additions & 12 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@ on:
paths:
- '.github/workflows/format-check.yml'
- '**/*.jl'
- '**/*.cpp'
- '**/*.h'
pull_request:
paths:
- '.github/workflows/format-check.yml'
- '**/*.jl'
- '**/*.cpp'
- '**/*.h'

concurrency:
# Skip intermediate builds: always.
Expand All @@ -28,11 +24,3 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/julia-format@v3

code-style-cpp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DoozyX/clang-format-lint-action@v0.18.2
with:
source: 'deps'

0 comments on commit c748d09

Please sign in to comment.