Skip to content

Commit

Permalink
Limit the CI jobs running on pull_request.
Browse files Browse the repository at this point in the history
Only trigger the ones recompiling dependencies locally when ./ext
or CMake is changed.
  • Loading branch information
vrabaud committed Apr 15, 2024
1 parent 7cb941b commit e92c367
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 14 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci-disable-gtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
# * Disables gtest.

name: CI Disable GTest
on: [push, pull_request]
on:
push
pull_request:
paths:
- '**CMakeLists.txt**'
- 'cmake/**'
- 'ext/**'

permissions:
contents: read
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ci-linux-static-old-local.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: CI Unix Static For AVIF_LOCAL
on: [push, pull_request]
push
pull_request:
paths:
- '**CMakeLists.txt**'
- 'cmake/**'
- 'ext/**'

permissions:
contents: read
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ci-unix-shared-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
# * Does not build rav1e, SVT-AV1 nor libgav1.

name: CI Unix Shared Local
on: [push, pull_request]
push
pull_request:
paths:
- '**CMakeLists.txt**'
- 'cmake/**'
- 'ext/**'

permissions:
contents: read
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ci-unix-static-av2.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: CI Unix Static AV2
on: [push, pull_request]
push
pull_request:
paths:
- '**CMakeLists.txt**'
- 'cmake/**'
- 'ext/**'

permissions:
contents: read
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ci-unix-static-sanitized.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: CI Unix Static Sanitized
on: [ push, pull_request ]
push
pull_request:
paths:
- '**CMakeLists.txt**'
- 'cmake/**'
- 'ext/**'

permissions:
contents: read
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ci-unix-static.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: CI Unix Static
on: [push, pull_request]
push
pull_request:
paths:
- '**CMakeLists.txt**'
- 'cmake/**'
- 'ext/**'

permissions:
contents: read
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/ci-windows-installed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
# * TODO: use proper installations of libgav1, libsharpyuv and SVT once released.

name: CI Windows Installed
on:
push:
branches:
- main
on: [push]

permissions:
contents: read
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
# * Builds with local zlib and libpng (-DAVIF_ZLIBPNG=LOCAL).

name: CI Windows
on: [push, pull_request]
push
pull_request:
paths:
- '**CMakeLists.txt**'
- 'cmake/**'
- 'ext/**'

permissions:
contents: read
Expand All @@ -22,7 +27,7 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build-static:
build-windows:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
paths:
- 'cmake/**'
- 'ext/**'
- 'include/**'
- 'src/**'
- 'tests/gtest/**'
- 'tests/oss-fuzz/**'

Expand Down

0 comments on commit e92c367

Please sign in to comment.