aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkylo252 <59826753+kylo252@users.noreply.github.com>2022-05-05 18:35:14 +0200
committerGitHub <noreply@github.com>2022-05-05 09:35:14 -0700
commit3e3e9c31255cd5c01bce96c68e5b1cf8e26a9f4d (patch)
tree82e5c173c78578cb088818ac0692e9609b254ba8
parent7fa8109881c22db7eced68a2d55118c369a86adf (diff)
downloadrneovim-3e3e9c31255cd5c01bce96c68e5b1cf8e26a9f4d.tar.gz
rneovim-3e3e9c31255cd5c01bce96c68e5b1cf8e26a9f4d.tar.bz2
rneovim-3e3e9c31255cd5c01bce96c68e5b1cf8e26a9f4d.zip
ci(bsd): conditional runs for faster builds #18434
sourcehut undocumented feature for conditionally running tasks. The current condition is based on git's pathspec, see `man gitglossary(7)`, to skip commits that only changed files under `.github/*`. refs - https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec - https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3C3cd90a91b7ce113bb3c5f07898c77543%40hacktivista.com%3E - https://git.sr.ht/~sircmpwn/builds.sr.ht/tree/master/item/worker/tasks.go#L196-198
-rw-r--r--.builds/freebsd.yml5
-rw-r--r--.builds/openbsd.yml5
2 files changed, 10 insertions, 0 deletions
diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml
index 2d06b1e685..9347966a08 100644
--- a/.builds/freebsd.yml
+++ b/.builds/freebsd.yml
@@ -23,6 +23,11 @@ environment:
CMAKE_EXTRA_FLAGS: -DCI_BUILD=ON -DMIN_LOG_LEVEL=3
tasks:
+- should-run: |
+ # exclude runs when the only changes are made to these patterns
+ if ! git diff --quiet -- '!:.github'; then
+ complete-build;
+ fi
- build-deps: |
cd neovim
gmake deps
diff --git a/.builds/openbsd.yml b/.builds/openbsd.yml
index 0aaa003820..7d2e489737 100644
--- a/.builds/openbsd.yml
+++ b/.builds/openbsd.yml
@@ -23,6 +23,11 @@ environment:
CMAKE_EXTRA_FLAGS: -DCI_BUILD=ON -DMIN_LOG_LEVEL=3
tasks:
+- should-run: |
+ # exclude runs when the only changes are made to these patterns
+ if ! git diff --quiet -- '!:.github'; then
+ complete-build;
+ fi
- build-deps: |
export AUTOCONF_VERSION=2.71
export AUTOMAKE_VERSION=1.16