Repository navigation
Skip the Swift build unless a release is due - #4
Merged
Merged
Conversation
AIRAC cycles take effect on Thursdays and this pipeline cuts the release the day before, so it only needs to run on Wednesdays and Thursdays (Thursday never has a release due, because the next cycle is then 28 days out). Every run used to spend about nine minutes on toolchain setup and a release build before deciding there was nothing to publish. A probe job on a bare runner now makes that decision first: a release is due when tomorrow is an AIRAC effective date (28-day steps from SwiftNASR's Cycle.datum, 2020-12-03, which is the same condition as the generator's 'tomorrow is not before the next cycle') and the release tagged with that date does not exist. Manual dispatches with a cycle always proceed. The publish job runs only when the probe says a release is due, and keeps its own check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The release is cut the day before an AIRAC cycle takes effect, which is always a Wednesday. A Thursday run never has anything to publish, because the next cycle is then 28 days out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Runs on Wednesdays only, since AIRAC cycles take effect on Thursdays and the release is cut the day before.
Each run used to spend about 9 minutes on Swift setup and
swift build -c releasebefore finding nothing to publish. A newprobejob decides first, on a bare runner, andpublishruns only if it says a release is due:Cycle.datum, 2020-12-03) andgh release view <tomorrow>finds nothing;workflow_dispatchwith a cycle always proceeds, and a blank dispatch is gated like the schedule, as before.🤖 Generated with Claude Code