[CI] Only run build checks when a rust related file has changed (#102)

This commit is contained in:
Tom 2023-09-21 20:03:12 +00:00 committed by GitHub
parent 1c9f2dc0a8
commit 1a60a0496f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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