ci: Build dependency for Github Actions #280
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
path: | |
- 'include' | |
- 'src' | |
- 'tests' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run clang-format | |
uses: jidicula/[email protected] | |
with: | |
clang-format-version: '14' | |
check-path: ${{ matrix.path }} |