From 1a60a0496fb4219166526bff751a51e1ac15450e Mon Sep 17 00:00:00 2001 From: Tom <25043847+Douile@users.noreply.github.com> Date: Thu, 21 Sep 2023 20:03:12 +0000 Subject: [PATCH] [CI] Only run build checks when a rust related file has changed (#102) --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 393bd00..85ce36d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,8 +4,18 @@ name: CI on: push: branches: [ "main" ] + paths: + - "**.rs" # Any rust file + - "Cargo.toml" + - ".rustfmt.toml" + - ".github/workflows/ci.yml" # This action pull_request: branches: [ "main" ] + paths: + - "**.rs" # Any rust file + - "Cargo.toml" + - ".rustfmt.toml" + - ".github/workflows/ci.yml" # This action env: CARGO_TERM_COLOR: always