Skip to content

Commit

Permalink
Add .clang-format CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasMagnus committed Jun 4, 2024
1 parent 666dba1 commit 90ae51d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2024 The Khronos Group Inc.
# Copyright 2024 RasterGrid Kft.
# SPDX-License-Identifier: Apache-2.0
name: Formatting

on:
workflow_call:

permissions:
contents: read

jobs:
clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run clang-format
uses: jidicula/[email protected]
with:
clang-format-version: '17'
4 changes: 4 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ on:
workflow_dispatch:

jobs:
formatting:
uses: ./.github/workflows/formatting.yml
windows:
# Shortcircuit and don't burn CI time when formatting will reject
needs: formatting
strategy:
matrix:
os: [ windows-latest ]
Expand Down

0 comments on commit 90ae51d

Please sign in to comment.