ci: Optimize format check workflow

- Use 'sparse-checkout' to fetch only the root files and 'vita3k' and 'tools' folder.
This commit is contained in:
Dicot0721
2026-06-02 19:33:58 +08:00
committed by Gamid
parent bbbd584e4b
commit 94d2a330e6
3 changed files with 17 additions and 9 deletions
+2 -2
View File
@@ -3,10 +3,10 @@ name: Build CI
on:
push:
paths-ignore:
- '**/*.md'
- '**.md'
pull_request:
paths-ignore:
- '**/*.md'
- '**.md'
env:
BUILD_CONFIG: Release
+2 -2
View File
@@ -9,13 +9,13 @@ on:
push:
branches: [master]
paths-ignore:
- '**/*.md'
- '**.md'
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
paths-ignore:
- '**/*.md'
- '**.md'
schedule:
- cron: '0 1 * * 3'
+13 -5
View File
@@ -2,28 +2,36 @@ name: Format Check
on:
push:
paths-ignore:
- '**/*.md'
paths:
- .clang-format
- vita3k/**
- tools/**
pull_request:
paths-ignore:
- '**/*.md'
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:
clang-format-version: '22'
check-path: ${{ matrix.path }}