git: c2144c3766ba - stable/13 - Cirrus-CI: add gcc12 automatic task on primary GitHub mirror

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Mon, 05 Jun 2023 14:30:05 UTC
The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=c2144c3766baa70f49ba0ba76ac54b9ef0fcdad7

commit c2144c3766baa70f49ba0ba76ac54b9ef0fcdad7
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-05-09 18:26:47 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-06-05 14:29:42 +0000

    Cirrus-CI: add gcc12 automatic task on primary GitHub mirror
    
    We want to get GCC coverage via Cirrus-CI, but don't want to trigger
    excessive runs across all forks and branches.  Create a duplicate gcc12
    task to run automatically for freebsd/freebsd-src.
    
    Reviewed by:    jhb
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit f5f1b9a9828a4fdf5b0ba51b291e0e1e7ac7b55f)
---
 .cirrus.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.cirrus.yml b/.cirrus.yml
index 57ff4a3b271f..3270040aba40 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -27,12 +27,18 @@ task:
       TARGET: arm64
       TARGET_ARCH: aarch64
       TOOLCHAIN_PKG: llvm15
-  - name: World and kernel gcc12 amd64 build and boot smoke test
+  - name: World and kernel gcc12 amd64 build and boot smoke test (manual)
     trigger_type: manual
     env:
       TARGET: amd64
       TARGET_ARCH: amd64
       TOOLCHAIN_PKG: amd64-gcc12
+  - name: World and kernel gcc12 amd64 build and boot smoke test (FreeBSD repo)
+    only_if: $CIRRUS_REPO_FULL_NAME == 'freebsd/freebsd-src'
+    env:
+      TARGET: amd64
+      TARGET_ARCH: amd64
+      TOOLCHAIN_PKG: amd64-gcc12
   timeout_in: 120m
   install_script:
   - sh .cirrus-ci/pkg-install.sh qemu-nox11 ${TOOLCHAIN_PKG}