feat(Actions): only trigger on changes that matter (#2752)

* feat(Actions): only trigger on changes that matter

* feat(Actions): include ci.yml to path trigger

* feat(Actions): cancel action if a new commit comes in

* feat(Actions): cancel last nightly if a new request comes in
This commit is contained in:
Andreas Maerten 2024-02-22 09:34:41 +01:00 committed by GitHub
parent 02d5af76fc
commit affa94b98c
2 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,16 @@
name: CI name: CI
on: [push, pull_request] on:
pull_request:
paths:
- src/**
- cmake/**
- CMakeLists.txt
- .github/workflows/ci.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
ci: ci:

View File

@ -6,6 +6,10 @@ on:
- cron: '0 14 * * *' - cron: '0 14 * * *'
workflow_dispatch: workflow_dispatch:
concurrency:
group: nightly
cancel-in-progress: true
jobs: jobs:
build_nightly: build_nightly:
runs-on: [self-hosted, Windows] runs-on: [self-hosted, Windows]