ci: Detect path and do not build on PR

This commit is contained in:
Calcitem 2021-11-29 01:13:17 +08:00
parent 7d6ce6ea1c
commit 45961caded
8 changed files with 16 additions and 19 deletions

View File

@ -2,8 +2,8 @@ name: Clang Format
on:
push:
pull_request:
branches: [ master ]
paths-ignore:
- 'src/ui/flutter_app/**'
jobs:
clang-format-checking:

View File

@ -14,11 +14,8 @@ name: "CodeQL"
on:
push:
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '43 14 * * 2'
paths-ignore:
- 'src/ui/flutter_app/**'
jobs:
analyze:

View File

@ -2,8 +2,8 @@ name: CUI on macOS
on:
push:
pull_request:
branches: [ master ]
paths:
- 'src/*.cpp'
jobs:
build:

View File

@ -2,8 +2,8 @@ name: CUI on Ubuntu
on:
push:
pull_request:
branches: [ master ]
paths:
- 'src/*.cpp'
jobs:
build:

View File

@ -2,8 +2,8 @@ name: CUI on Windows
on:
push:
pull_request:
branches: [ master ]
paths:
- 'src/*.cpp'
jobs:
build:

View File

@ -2,8 +2,8 @@ name: Dart Analyze
on:
push:
pull_request:
branches: [ master ]
paths:
- 'src/ui/flutter_app/**'
jobs:
linter:

View File

@ -2,8 +2,8 @@ name: Flutter
on:
push:
pull_request:
branches: [ master ]
paths:
- 'src/ui/flutter_app/**'
jobs:
build:

View File

@ -2,8 +2,8 @@ name: Qt on Windows
on:
push:
pull_request:
branches: [ master ]
paths:
- 'src/ui/qt/**'
jobs:
build: