Skip to content

Camera: Viewport and Snapshot (WIP) #26

Camera: Viewport and Snapshot (WIP)

Camera: Viewport and Snapshot (WIP) #26

Workflow file for this run

name: 'Format Check'

Check failure on line 1 in .github/workflows/format_check.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/format_check.yml

Invalid workflow file

(Line: 46, Col: 13): 'exclude' is already defined, (Line: 47, Col: 13): 'exclude' is already defined
on:
push:
branches:
- 'main'
paths:
- '**/*.c'
- '**/*.cpp'
- '**/*.h'
- '**/*.hpp'
pull_request:
types:
- opened
- edited
- reopened
- synchronize
branches:
- 'main'
paths:
- '**/*.c'
- '**/*.cpp'
- '**/*.h'
- '**/*.hpp'
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
jobs:
format-check:
runs-on: ubuntu-latest
strategy:
matrix:
path:
- check: 'cores/arduino/'
exclude: 'cores/arduino/api/'
- check: 'loader/'
exclude: 'loader/llext_exports\.c$'
- check: 'libraries/'
exclude: 'examples'
exclude: 'extras'
exclude: 'ea_malloc'
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: false
persist-credentials: false
- name: Run clang-format check
uses: jidicula/[email protected]
with:
clang-format-version: '19'
check-path: ${{ matrix.path['check'] }}
exclude-regex: ${{ matrix.path['exclude'] }}