aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkylo252 <59826753+kylo252@users.noreply.github.com>2022-05-12 03:26:07 +0200
committerGitHub <noreply@github.com>2022-05-11 18:26:07 -0700
commita2d4b862f16ed9814ce45a865a3596c958e066af (patch)
treeec605300d775baa2de21e6aa2d694c3844eb1c25
parentc24b442e310f06c3ad9d4763b09bc9cb7dbaca62 (diff)
downloadrneovim-a2d4b862f16ed9814ce45a865a3596c958e066af.tar.gz
rneovim-a2d4b862f16ed9814ce45a865a3596c958e066af.tar.bz2
rneovim-a2d4b862f16ed9814ce45a865a3596c958e066af.zip
ci(bsd): conditional runs for faster builds #18439
(undocumented) sourcehut feature for conditionally running consequent tasks. ref: 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..4be49fd153 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: |
+ if ! git -C neovim diff --name-only HEAD^! | grep -E -v "^(.github|runtime/doc/.*)" >/dev/null; then
+ echo "Skipping build because only ignored files were changed"
+ complete-build
+ fi
- build-deps: |
cd neovim
gmake deps
diff --git a/.builds/openbsd.yml b/.builds/openbsd.yml
index 0aaa003820..6263c436ae 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: |
+ if ! git -C neovim diff --name-only HEAD^! | grep -E -v "^(.github|runtime/doc/.*)" >/dev/null; then
+ echo "Skipping build because only ignored files were changed"
+ complete-build
+ fi
- build-deps: |
export AUTOCONF_VERSION=2.71
export AUTOMAKE_VERSION=1.16