Updated runners push logic

This commit is contained in:
fedor 2025-05-04 09:03:34 -04:00
parent 1a09db706a
commit 2401e19f34
2 changed files with 5 additions and 4 deletions

View File

@ -23,10 +23,10 @@ task:
-var expected_runtimes_file="data/expected.$MACOS_VERSION.runtimes.txt" \
templates/xcode.pkr.hcl
push_script: |
if [[ -z "$CIRRUS_CRON" ]]; then
echo "Not a cron build, skipping pushing..."
else
if [[ -z "$CIRRUS_PR" ]]; then
tart push "$MACOS_VERSION-xcode:runner" ghcr.io/cirruslabs/macos-runner:$MACOS_VERSION
else
echo "Skipping pushing for PR..."
fi
always:
cleanup_script:

View File

@ -46,6 +46,7 @@ def main(ctx):
if env.get("CIRRUS_CRON") == "monthly":
result += fs.read(".ci/cirrus.base.yml")
result += fs.read(".ci/cirrus.xcode.yml")
if env.get("CIRRUS_CRON") == "weekly" or changes_include(".ci/cirrus.runner.yml"):
prForRunners = env.get("CIRRUS_PR") and changes_include(".ci/cirrus.runner.yml")
if prForRunners:
result += fs.read(".ci/cirrus.runner.yml")
return result