mirror of
https://github.com/Vita3K/Vita3K.git
synced 2026-07-11 01:34:23 +02:00
94d2a330e6
- Use 'sparse-checkout' to fetch only the root files and 'vita3k' and 'tools' folder.
38 lines
645 B
YAML
38 lines
645 B
YAML
name: Format Check
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- .clang-format
|
|
- vita3k/**
|
|
- tools/**
|
|
|
|
pull_request:
|
|
paths:
|
|
- .clang-format
|
|
- vita3k/**
|
|
- tools/**
|
|
|
|
jobs:
|
|
format-check:
|
|
name: Format Check (${{ matrix.path }})
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
path:
|
|
- vita3k
|
|
- tools
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
sparse-checkout: ${{ matrix.path }}
|
|
|
|
- name: Format check
|
|
uses: jidicula/clang-format-action@v4.18.0
|
|
with:
|
|
check-path: ${{ matrix.path }}
|