mirror of
https://github.com/javalsai/lidm.git
synced 2025-07-08 08:48:41 +02:00
ci(perf): only run push build checks if code changed
This commit is contained in:
parent
ee244be195
commit
ab7666f561
17
.github/workflows/push.yml
vendored
17
.github/workflows/push.yml
vendored
@ -12,7 +12,24 @@ jobs:
|
||||
name: Check
|
||||
uses: ./.github/workflows/check.yml
|
||||
permissions: write-all
|
||||
check_paths:
|
||||
name: Paths Filter
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
code_changed: ${{ steps.filter.outputs.code }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- id: filter
|
||||
uses: dorny/paths-filter@v3
|
||||
with:
|
||||
filters: |
|
||||
code:
|
||||
- Makefile
|
||||
- 'src/**'
|
||||
- 'include/**'
|
||||
build:
|
||||
name: Build
|
||||
needs: check_paths
|
||||
if: github.event_name != 'push' || needs.check_paths.outputs.code_changed == 'true'
|
||||
uses: ./.github/workflows/build.yml
|
||||
permissions: write-all
|
||||
|
Loading…
x
Reference in New Issue
Block a user