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
This commit is contained in:
DeeDeeG 2023-08-29 04:09:35 -04:00
parent a08121d12f
commit 48531274b7

View File

@ -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