Skip to content

Commit

Permalink
let ci execute only when rust files changed
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Sep 23, 2024
1 parent 8004c1f commit 538badc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@ name: ci-linux
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- '**.rs' # only execute on changes to go files
- '**/Cargo.toml' # or dependency updates
- '.github/workflows/**' # or workflow changes
push:
branches:
- main
paths:
- '**.rs' # only execute on changes to go files
- '**/Cargo.toml' # or dependency updates
- '.github/workflows/**' # or workflow changes

jobs:
udeps:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@ name: ci-macos
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- '**.rs' # only execute on changes to go files
- '**/Cargo.toml' # or dependency updates
- '.github/workflows/**' # or workflow changes
push:
branches:
- main
paths:
- '**.rs' # only execute on changes to go files
- '**/Cargo.toml' # or dependency updates
- '.github/workflows/**' # or workflow changes

jobs:
test:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@ name: ci-windows
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- '**.rs' # only execute on changes to go files
- '**/Cargo.toml' # or dependency updates
- '.github/workflows/**' # or workflow changes
push:
branches:
- main
paths:
- '**.rs' # only execute on changes to go files
- '**/Cargo.toml' # or dependency updates
- '.github/workflows/**' # or workflow changes

jobs:
test:
Expand Down

0 comments on commit 538badc

Please sign in to comment.