Skip to content

Commit 131fe02

Browse files
committed
CI: Cirrus CI - skip build on ignore-paths
Cirrus CI supports a `<job>.skip` key that skips the build if the expression evaluates to true. This adds the same list of `on.pull_request.paths-ignore` patterns from GitHub Actions workflows. This should save several minutes of CI times on PRs when the changes are only in the README/doc files. [Cirrus CI Docs](https://cirrus-ci.org/guide/writing-tasks/#supported-functions)
1 parent 2a3dae1 commit 131fe02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.cirrus.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ freebsd_task:
55
name: FREEBSD_DEBUG_NTS
66
freebsd_instance:
77
image_family: freebsd-13-3
8+
skip: "changesIncludeOnly('docs/**', 'NEWS', 'UPGRADING', 'UPGRADING.INTERNALS', '**/README.*', 'CONTRIBUTING.md', 'CODING_STANDARDS.md', '.circleci/**')"
89
env:
910
ARCH: amd64
1011
install_script:

0 commit comments

Comments
 (0)