From 48531274b7a23e3c91455bfc03ba3950148afbe1 Mon Sep 17 00:00:00 2001 From: DeeDeeG Date: Tue, 29 Aug 2023 04:09:35 -0400 Subject: [PATCH] Cirrus: Skip builds if same commit was previously built Doing this to save on CI credits that might otherwise be spent re-building the same commit multiple times. Also prevents us from publishing the same git revision as multiple Rolling release versions published days apart from one-another. For details of these env vars and the `skip` keyword, see: - https://cirrus-ci.org/guide/writing-tasks/#environment-variables - https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution --- .cirrus.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index fd8e501c8..5474df451 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -57,6 +57,7 @@ env: arm_linux_task: alias: linux only_if: $CIRRUS_CRON != "" || $CIRRUS_TAG != "" + skip: $CIRRUS_CHANGE_IN_REPO == $CIRRUS_LAST_GREEN_CHANGE arm_container: image: node:16-slim memory: 8G @@ -119,6 +120,7 @@ arm_linux_task: silicon_mac_task: alias: mac only_if: $CIRRUS_CRON != "" || $CIRRUS_TAG != "" + skip: $CIRRUS_CHANGE_IN_REPO == $CIRRUS_LAST_GREEN_CHANGE macos_instance: image: ghcr.io/cirruslabs/macos-monterey-xcode:14 memory: 8G