Skip to content

Commit a662b66

Browse files
authored
ci(nix): add path filters to build workflow (#1584)
With this commit, an additional check is ran on whether build files, source files and 'nix.yaml' workflow file are modified. This prevents the slow nix build workflow from being ran when non-build files, non-source files and non-nix workflow files are updated such as documentation files.
1 parent ca3c358 commit a662b66

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Diff for: .github/workflows/nix.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,29 @@ name: Test Nix
22

33
on:
44
push:
5+
paths:
6+
- "**/*.lua"
7+
- "**/*.rs"
8+
- ".cargo/**"
9+
- Cargo.lock
10+
- Cargo.toml
11+
- Cross.toml
12+
- rust-toolchain.toml
13+
- flake.lock
14+
- flake.nix
15+
- .github/workflows/nix.yaml
516
pull_request:
17+
paths:
18+
- "**/*.lua"
19+
- "**/*.rs"
20+
- ".cargo/**"
21+
- Cargo.lock
22+
- Cargo.toml
23+
- Cross.toml
24+
- rust-toolchain.toml
25+
- flake.lock
26+
- flake.nix
27+
- .github/workflows/nix.yaml
628

729
jobs:
830
build:

0 commit comments

Comments
 (0)