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.
All
push
event runs of the Build action since 2024-01-25 have failed in part1 becauseactions/checkout
is not being run prior totj-actions/changed-files
.This primarily presents a problem for novice end-users looking forAll artifacts containing the outdated firmware have now expired.settings_reset
firmware as linked from the documentation. The outdated binaries appear to be entirely ineffective on Zephyr 3.5 firmware2.Remaining commits are general improvements to security and efficiency:
concurrency
Group builds by workflow and github ref.
ref_name
is another possibility, but could collide with any eventual tags.These groupings allow us to...
cancel-in-progress
...cancel workflow runs which are subsequently obsoleted by later pushes.
In an ideal world, anyway. Unfortunately, the way ZMK currently handles the final
Build
andUpload Artifact
steps means the cancellation of those particular steps is not immediate. If the five-minute post-cancellation timeout passes, something will error out. If not: the job will grind on to completion and display as "Cancelled".This is something worth examining as part of a re-evaluation of CI generally, but it's out of scope for now. Any kind of "stop doing unnecessary work" constitutes improvement.
permissions
Given what this workflow currently does, its
GITHUB_TOKEN
doesn't need anything more than read-only access to metadata.persist-credentials
It also doesn't need to keep the
zmkfirmware
credentials handy.etc
compile-matrix
job has no inputs because the previous jobs were canceled, might as well cancel it.Suggestions welcome. I have been testing these changes in my own fork.
Footnotes
It might be "in total"; I haven't checked every run. ↩
[SOLVED] Right side of Corne suddenly dead. #2210, discord, discord ↩