File: format.yml

package info (click to toggle)
vulkan-utility-libraries 1.4.341.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,636 kB
  • sloc: cpp: 109,126; ansic: 17,113; python: 2,220; sh: 23; makefile: 6
file content (36 lines) | stat: -rw-r--r-- 693 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
#
# SPDX-License-Identifier: Apache-2.0

name: format

on:
    push:
    pull_request:
        branches:
            - main

permissions:
    contents: read

jobs:
  clang-format:
    name: clang-format
    runs-on: ubuntu-24.04
    strategy:
      fail-fast: false
      matrix:
        path:
          - 'include'
          - 'src'
          - 'tests'
    steps:
    - uses: actions/checkout@v6
    - name: clang-format version
      run: clang-format --version
    - name: Run clang-format
      uses: jidicula/clang-format-action@v4.16.0
      with:
        clang-format-version: '18'
        check-path: ${{ matrix.path }}