From f14809b5523c8d856d860c354adf67a41a6ef782 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Wed, 17 Apr 2024 10:25:12 +0200 Subject: [PATCH] Limit the CI jobs running on pull_request. (#2115) --- .github/workflows/ci-disable-gtest.yml | 8 +++++++- .github/workflows/ci-linux-static-old-local.yml | 8 +++++++- .github/workflows/ci-unix-static-av2.yml | 8 +++++++- .github/workflows/ci-unix-static-sanitized.yml | 8 +++++++- .github/workflows/ci-unix-static.yml | 8 +++++++- .github/workflows/ci-windows.yml | 10 ++++++++-- .github/workflows/cifuzz.yml | 3 +-- 7 files changed, 44 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-disable-gtest.yml b/.github/workflows/ci-disable-gtest.yml index c87ed8bc06..2ed6bbb1e0 100644 --- a/.github/workflows/ci-disable-gtest.yml +++ b/.github/workflows/ci-disable-gtest.yml @@ -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 diff --git a/.github/workflows/ci-linux-static-old-local.yml b/.github/workflows/ci-linux-static-old-local.yml index 99aada918c..fd887cec1a 100644 --- a/.github/workflows/ci-linux-static-old-local.yml +++ b/.github/workflows/ci-linux-static-old-local.yml @@ -1,5 +1,11 @@ name: CI Unix Static For AVIF_LOCAL -on: [push, pull_request] +on: + push: + pull_request: + paths: + - '**CMakeLists.txt' + - 'cmake/**' + - 'ext/**' permissions: contents: read diff --git a/.github/workflows/ci-unix-static-av2.yml b/.github/workflows/ci-unix-static-av2.yml index 60b2d7d23f..0fac44687b 100644 --- a/.github/workflows/ci-unix-static-av2.yml +++ b/.github/workflows/ci-unix-static-av2.yml @@ -1,5 +1,11 @@ name: CI Unix Static AV2 -on: [push, pull_request] +on: + push: + pull_request: + paths: + - '**CMakeLists.txt' + - 'cmake/**' + - 'ext/**' permissions: contents: read diff --git a/.github/workflows/ci-unix-static-sanitized.yml b/.github/workflows/ci-unix-static-sanitized.yml index f3371a320e..670b275c7c 100644 --- a/.github/workflows/ci-unix-static-sanitized.yml +++ b/.github/workflows/ci-unix-static-sanitized.yml @@ -1,5 +1,11 @@ name: CI Unix Static Sanitized -on: [ push, pull_request ] +on: + push: + pull_request: + paths: + - '**CMakeLists.txt' + - 'cmake/**' + - 'ext/**' permissions: contents: read diff --git a/.github/workflows/ci-unix-static.yml b/.github/workflows/ci-unix-static.yml index 32d858edca..6ab2833b5d 100644 --- a/.github/workflows/ci-unix-static.yml +++ b/.github/workflows/ci-unix-static.yml @@ -1,5 +1,11 @@ name: CI Unix Static -on: [push, pull_request] +on: + push: + pull_request: + paths: + - '**CMakeLists.txt' + - 'cmake/**' + - 'ext/**' permissions: contents: read diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index ec23064106..8cf86b688e 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -11,7 +11,13 @@ # * Builds with local zlib and libpng (-DAVIF_ZLIBPNG=LOCAL). name: CI Windows -on: [push, pull_request] +on: + push: + pull_request: + paths: + - '**CMakeLists.txt' + - 'cmake/**' + - 'ext/**' permissions: contents: read @@ -22,7 +28,7 @@ concurrency: cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: - build-static: + build-windows: runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml index 7b2bd2b77e..5ad8ef0740 100644 --- a/.github/workflows/cifuzz.yml +++ b/.github/workflows/cifuzz.yml @@ -1,11 +1,10 @@ name: CI Fuzz on: + push: pull_request: paths: - 'cmake/**' - 'ext/**' - - 'include/**' - - 'src/**' - 'tests/gtest/**' - 'tests/oss-fuzz/**'