From 7b6021eee71092e53f2eb009b467215e5558dc6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= <1671644+arrufat@users.noreply.github.com> Date: Sun, 23 Jul 2023 22:02:21 +0900 Subject: [PATCH] Only trigger CI when relevant files are changed (#2836) --- .github/workflows/build_cpp.yml | 16 ++++++++++++++++ .github/workflows/build_python.yml | 18 ++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/.github/workflows/build_cpp.yml b/.github/workflows/build_cpp.yml index 2bd1febf6..55a8d9034 100644 --- a/.github/workflows/build_cpp.yml +++ b/.github/workflows/build_cpp.yml @@ -4,9 +4,25 @@ on: push: branches: - master + paths: + - ".github/workflows/build_cpp.yml" + - "**.cpp" + - "**.h" + - "**.c" + - "**.cu" + - "**.cmake" + - "**CMakeLists.txt" pull_request: branches: - master + paths: + - ".github/workflows/build_cpp.yml" + - "**.cpp" + - "**.h" + - "**.c" + - "**.cu" + - "**.cmake" + - "**CMakeLists.txt" defaults: run: diff --git a/.github/workflows/build_python.yml b/.github/workflows/build_python.yml index eeb25257a..9860b9c7f 100644 --- a/.github/workflows/build_python.yml +++ b/.github/workflows/build_python.yml @@ -4,9 +4,27 @@ on: push: branches: - master + paths: + - ".github/workflows/build_python.yml" + - "**.cpp" + - "**.h" + - "**.c" + - "**.cu" + - "**.cmake" + - "**CMakeLists.txt" + - "**py" pull_request: branches: - master + paths: + - ".github/workflows/build_python.yml" + - "**.cpp" + - "**.h" + - "**.c" + - "**.cu" + - "**.cmake" + - "**CMakeLists.txt" + - "**py" defaults: run: