ci: skip jobs unrelated to the changed paths
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
4b005b229e
commit
377535261d
|
|
@ -20,8 +20,35 @@ env:
|
|||
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
|
||||
jobs:
|
||||
changes:
|
||||
if: github.event_name == 'pull_request'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
outputs:
|
||||
relinker: ${{ steps.filter.outputs.relinker }}
|
||||
code: ${{ steps.filter.outputs.code }}
|
||||
steps:
|
||||
- uses: dorny/paths-filter@v4
|
||||
id: filter
|
||||
with:
|
||||
predicate-quantifier: some-with-excludes
|
||||
filters: |
|
||||
relinker:
|
||||
- 'core/relinker/**'
|
||||
- 'core/libs/prx/libc/src/specifics/windows/**'
|
||||
- 'CMakeLists.txt'
|
||||
- '.github/workflows/build.yml'
|
||||
code:
|
||||
- '**'
|
||||
- '!**/*.md'
|
||||
- '!docs/**'
|
||||
|
||||
relinker:
|
||||
name: Relinker (${{ matrix.os }})
|
||||
needs: changes
|
||||
if: ${{ !cancelled() && (needs.changes.result != 'success' || needs.changes.outputs.relinker == 'true') }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 15
|
||||
strategy:
|
||||
|
|
@ -59,6 +86,8 @@ jobs:
|
|||
- run: ctest --test-dir build-relinker --output-on-failure --timeout 120
|
||||
|
||||
linux:
|
||||
needs: changes
|
||||
if: ${{ !cancelled() && (needs.changes.result != 'success' || needs.changes.outputs.code == 'true') }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
|
|
@ -83,6 +112,8 @@ jobs:
|
|||
GALLIUM_OVERRIDE_CPU_CAPS: avx
|
||||
|
||||
windows:
|
||||
needs: changes
|
||||
if: ${{ !cancelled() && (needs.changes.result != 'success' || needs.changes.outputs.code == 'true') }}
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 45
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@ name: Progress report
|
|||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'core/libs/prx/**'
|
||||
- 'tools/progress.py'
|
||||
- '.github/workflows/progress-report.yml'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
|
|||
Loading…
Reference in New Issue