From 1fcf2b5e3262be5a2a8d9140b645edae0f40c3ba Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Thu, 31 Oct 2024 17:17:51 -0400 Subject: [PATCH] Don't run CI unless there are salient code changes --- .github/workflows/main_ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/main_ci.yml b/.github/workflows/main_ci.yml index 9a7841f1..9e149fb9 100644 --- a/.github/workflows/main_ci.yml +++ b/.github/workflows/main_ci.yml @@ -4,9 +4,17 @@ on: push: branches: - main + paths: + - **/src/** + - **/include/** + - **/test/** pull_request: branches: - main + paths: + - **/src/** + - **/include/** + - **/test/** env: CMAKE_BUILD_PARALLEL_LEVEL: 3 @@ -119,6 +127,14 @@ jobs: CRYPTO_DIR: "./alternatives/${{ matrix.crypto }}" steps: + # Only run non-OpenSSL 3 libraries if there's a change in the HPKE code + - uses: dorny/paths-filter@v3 + if: matrix.crypto != "openssl_3" + with: + filters: | + src: + - 'lib/hpke/**' + - uses: actions/checkout@v4 with: submodules: recursive