diff options
author | Jose Luis Duran <jlduran@gmail.com> | 2023-10-06 12:13:26 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2024-01-11 13:29:12 +0000 |
commit | c7163823c9a283702604347edc47f015ec4ed4fe (patch) | |
tree | 2e072dd3977b35efdffc3bd385c56b8360a134f8 | |
parent | d7623fdcf0f028773afae1b8e1d54c4cd7eccf40 (diff) | |
download | src-c7163823c9a283702604347edc47f015ec4ed4fe.tar.gz src-c7163823c9a283702604347edc47f015ec4ed4fe.zip |
Cirrus CI: Trigger on pull requests or downstream repos
Since Cirrus Labs is limiting their free usage tier [1], limit CI runs
on pull requests only. Otherwise, we might deplete our monthly quota
within a few days.
Adapt the task amd64-llvm16 to execute on downstream repos or on pull
requests only.
Other alternatives will be further studied.
[1]: https://cirrus-ci.org/blog/2023/07/17/limiting-free-usage-of-cirrus-ci/
(cherry picked from commit 5d371834d29c3c716148f201bb8c1f68f15218fb)
-rw-r--r-- | .cirrus.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 317c5b28230d..96fbb873136c 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -23,6 +23,7 @@ task: TOOLCHAIN: llvm15 TOOLCHAIN_PKG: ${TOOLCHAIN}-lite - name: amd64-llvm16 World and kernel build and boot smoke test + only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src' || $CIRRUS_BRANCH =~ 'pull/.*' env: TARGET: amd64 TARGET_ARCH: amd64 |