From 43e71fe0fc7833a1c47696d1797044973f8552c0 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 24 Mar 2023 18:10:08 -0700 Subject: [PATCH] CI: skip some more builds when possible When a commit only contains tests, documentation, or cmake files, skip those builds that aren't affected by those. The file filters available on the CI services don't seem to allow skipping individual jobs, only the entire workflow, so we can't get any more fine-grained than this. --- .cirrus.yml | 2 ++ .github/workflows/codeql-analysis.yml | 4 ++++ .github/workflows/fuzz.yml | 6 ++++++ .github/workflows/ngtcp2-gnutls.yml | 4 ++++ .github/workflows/ngtcp2-quictls.yml | 4 ++++ .github/workflows/ngtcp2-wolfssl.yml | 4 ++++ .github/workflows/torture.yml | 4 ++++ .github/workflows/wolfssl.yml | 4 ++++ 8 files changed, 32 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 574f85cb79..b6df02cac3 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -28,10 +28,12 @@ freebsd_task: skip: "changesIncludeOnly( + '**/CMakeLists.txt', '.azure-pipelines.yml', '.circleci/**', '.github/**', 'appveyor.yml', + 'CMake/**', 'packages/**', 'plan9/**', 'projects/**', diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c7f6107d5d..e5f38cc831 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -15,9 +15,11 @@ on: - '.circleci/**' - '.cirrus.yml' - 'appveyor.yml' + - 'docs/**' - 'packages/**' - 'plan9/**' - 'projects/**' + - 'tests/data/**' - 'winbuild/**' pull_request: branches: @@ -28,9 +30,11 @@ on: - '.circleci/**' - '.cirrus.yml' - 'appveyor.yml' + - 'docs/**' - 'packages/**' - 'plan9/**' - 'projects/**' + - 'tests/data/**' - 'winbuild/**' schedule: - cron: '0 0 * * 4' diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 520be76359..4554ec39b9 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -11,25 +11,31 @@ on: - '*/ci' paths-ignore: - '**/*.md' + - '**/CMakeLists.txt' - '.azure-pipelines.yml' - '.circleci/**' - '.cirrus.yml' - 'appveyor.yml' + - 'CMake/**' - 'packages/**' - 'plan9/**' - 'projects/**' + - 'tests/data/**' - 'winbuild/**' pull_request: branches: - master paths-ignore: - '**/*.md' + - '**/CMakeLists.txt' - '.azure-pipelines.yml' - '.cirrus.yml' - 'appveyor.yml' + - 'CMake/**' - 'packages/**' - 'plan9/**' - 'projects/**' + - 'tests/data/**' - 'winbuild/**' concurrency: diff --git a/.github/workflows/ngtcp2-gnutls.yml b/.github/workflows/ngtcp2-gnutls.yml index c80fd151b0..d46bde7629 100644 --- a/.github/workflows/ngtcp2-gnutls.yml +++ b/.github/workflows/ngtcp2-gnutls.yml @@ -11,10 +11,12 @@ on: - '*/ci' paths-ignore: - '**/*.md' + - '**/CMakeLists.txt' - '.azure-pipelines.yml' - '.circleci/**' - '.cirrus.yml' - 'appveyor.yml' + - 'CMake/**' - 'packages/**' - 'plan9/**' - 'projects/**' @@ -24,10 +26,12 @@ on: - master paths-ignore: - '**/*.md' + - '**/CMakeLists.txt' - '.azure-pipelines.yml' - '.circleci/**' - '.cirrus.yml' - 'appveyor.yml' + - 'CMake/**' - 'packages/**' - 'plan9/**' - 'projects/**' diff --git a/.github/workflows/ngtcp2-quictls.yml b/.github/workflows/ngtcp2-quictls.yml index 60b406fc6e..d680500d05 100644 --- a/.github/workflows/ngtcp2-quictls.yml +++ b/.github/workflows/ngtcp2-quictls.yml @@ -11,10 +11,12 @@ on: - '*/ci' paths-ignore: - '**/*.md' + - '**/CMakeLists.txt' - '.azure-pipelines.yml' - '.circleci/**' - '.cirrus.yml' - 'appveyor.yml' + - 'CMake/**' - 'packages/**' - 'plan9/**' - 'projects/**' @@ -24,10 +26,12 @@ on: - master paths-ignore: - '**/*.md' + - '**/CMakeLists.txt' - '.azure-pipelines.yml' - '.circleci/**' - '.cirrus.yml' - 'appveyor.yml' + - 'CMake/**' - 'packages/**' - 'plan9/**' - 'projects/**' diff --git a/.github/workflows/ngtcp2-wolfssl.yml b/.github/workflows/ngtcp2-wolfssl.yml index 3cfcdd208b..4940fcbb45 100644 --- a/.github/workflows/ngtcp2-wolfssl.yml +++ b/.github/workflows/ngtcp2-wolfssl.yml @@ -11,10 +11,12 @@ on: - '*/ci' paths-ignore: - '**/*.md' + - '**/CMakeLists.txt' - '.azure-pipelines.yml' - '.circleci/**' - '.cirrus.yml' - 'appveyor.yml' + - 'CMake/**' - 'packages/**' - 'plan9/**' - 'projects/**' @@ -24,10 +26,12 @@ on: - master paths-ignore: - '**/*.md' + - '**/CMakeLists.txt' - '.azure-pipelines.yml' - '.circleci/**' - '.cirrus.yml' - 'appveyor.yml' + - 'CMake/**' - 'packages/**' - 'plan9/**' - 'projects/**' diff --git a/.github/workflows/torture.yml b/.github/workflows/torture.yml index 612ad6a4af..8e089a0b17 100644 --- a/.github/workflows/torture.yml +++ b/.github/workflows/torture.yml @@ -11,10 +11,12 @@ on: - '*/ci' paths-ignore: - '**/*.md' + - '**/CMakeLists.txt' - '.azure-pipelines.yml' - '.circleci/**' - '.cirrus.yml' - 'appveyor.yml' + - 'CMake/**' - 'packages/**' - 'plan9/**' - 'projects/**' @@ -24,10 +26,12 @@ on: - master paths-ignore: - '**/*.md' + - '**/CMakeLists.txt' - '.azure-pipelines.yml' - '.circleci/**' - '.cirrus.yml' - 'appveyor.yml' + - 'CMake/**' - 'packages/**' - 'plan9/**' - 'projects/**' diff --git a/.github/workflows/wolfssl.yml b/.github/workflows/wolfssl.yml index 86d859e6a6..dea3f71e62 100644 --- a/.github/workflows/wolfssl.yml +++ b/.github/workflows/wolfssl.yml @@ -11,10 +11,12 @@ on: - '*/ci' paths-ignore: - '**/*.md' + - '**/CMakeLists.txt' - '.azure-pipelines.yml' - '.circleci/**' - '.cirrus.yml' - 'appveyor.yml' + - 'CMake/**' - 'packages/**' - 'plan9/**' - 'projects/**' @@ -24,10 +26,12 @@ on: - master paths-ignore: - '**/*.md' + - '**/CMakeLists.txt' - '.azure-pipelines.yml' - '.circleci/**' - '.cirrus.yml' - 'appveyor.yml' + - 'CMake/**' - 'packages/**' - 'plan9/**' - 'projects/**'