summaryrefslogtreecommitdiff
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2023-03-10 16:58:21 -0800
committerDan Fandrich <dan@coneharvesters.com>2023-03-11 18:59:45 -0800
commit395b9175b7422d699fa93643973295c106cdf147 (patch)
tree4b535127d76f6b1c13cf0ae655c499ad65368fc4 /.cirrus.yml
parentee521a1c889f4cde6905c5db117959917568be9b (diff)
downloadcurl-395b9175b7422d699fa93643973295c106cdf147.tar.gz
CI: don't run CI jobs if only another CI was changed
Also skip builds on non-Windows platforms when only Windows build files have changed. This should reduce the number of useless builds and the associated waiting time and chance of spurious failures, freeing resources for new PRs. Closes #10742
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml35
1 files changed, 34 insertions, 1 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 309491a63..574f85cb7 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -21,10 +21,23 @@
# SPDX-License-Identifier: curl
#
###########################################################################
-# Cirrus CI configuration
# https://cirrus-ci.com/github/curl/curl
+#
+# Cirrus CI configuration:
+# https://cirrus-ci.org/guide/writing-tasks/
freebsd_task:
+ skip: "changesIncludeOnly(
+ '.azure-pipelines.yml',
+ '.circleci/**',
+ '.github/**',
+ 'appveyor.yml',
+ 'packages/**',
+ 'plan9/**',
+ 'projects/**',
+ 'winbuild/**'
+ )"
+
name: FreeBSD
matrix:
@@ -77,6 +90,15 @@ freebsd_task:
- make V=1 install
windows_task:
+ skip: "changesIncludeOnly(
+ '.azure-pipelines.yml',
+ '.circleci/**',
+ '.github/**',
+ 'appveyor.yml',
+ 'packages/**',
+ 'plan9/**'
+ )"
+
name: Windows
timeout_in: 120m
windows_container:
@@ -135,6 +157,17 @@ windows_task:
%container_cmd% -l -c "cd $(echo '%cd%') && %make_cmd% TFLAGS='!IDN !SCP ~612 ~1056 %tests%' test-ci"
macos_task:
+ skip: "changesIncludeOnly(
+ '.azure-pipelines.yml',
+ '.circleci/**',
+ '.github/**',
+ 'appveyor.yml',
+ 'packages/**',
+ 'plan9/**',
+ 'projects/**',
+ 'winbuild/**'
+ )"
+
name: macOS arm64
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:latest