git: f5f1b9a9828a - main - Cirrus-CI: add gcc12 automatic task on primary GitHub mirror

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Tue, 09 May 2023 21:16:24 UTC
The branch main has been updated by emaste:

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

commit f5f1b9a9828a4fdf5b0ba51b291e0e1e7ac7b55f
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-05-09 18:26:47 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-05-09 21:13:44 +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
---
 .cirrus.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.cirrus.yml b/.cirrus.yml
index f560e9476bc8..9d97ca74e75b 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -26,12 +26,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 ${TOOLCHAIN_PKG} git-lite