ci: replace release job with update-deps workflow#55
Open
ppenna wants to merge 1 commit into
Open
Conversation
Replace the monolithic release job with a new update-deps job that: - Parses incoming binutils/newlib release tags from repository_dispatch - Downloads tarballs and computes SHA256 checksums - Updates pinned versions in the z script via sed - Runs full CI validation (stage 0 + stage 1 where applicable) - Opens a PR against dev with the version changes Regular CI builds triggered by push/PR continue using pinned versions.
There was a problem hiding this comment.
Pull request overview
This PR refactors the CI workflow by removing the monolithic “release” job and replacing it with an update-deps job that is triggered by repository_dispatch events (binutils-release / newlib-release). The new job updates pinned dependency versions/checksums in the repo’s z build utility, runs CI validation, and then opens a PR against dev.
Changes:
- Replace the prior release-oriented job with an
update-depsjob triggered byrepository_dispatchevent types. - Add steps to parse incoming tags, download dependency tarballs, compute SHA256 checksums, and update pinned
zvariables viased. - Run stage-appropriate CI validation and automatically push a branch + open a PR with the pinned dependency updates.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/nanvix-ci.yml | Replaces the release pipeline with a dispatch-driven dependency update workflow that updates z, validates, and opens a PR. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 1
| run: | | ||
| git tag ${{ steps.commit_info.outputs.tag_name }} | ||
| git push origin ${{ steps.commit_info.outputs.tag_name }} | ||
| git checkout -b "$BRANCH_NAME" |
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.
Replace the monolithic release job with a new
update-depsjob that runs onrepository_dispatchevents (binutils-release/newlib-release).What it does
zscript gets accurate integrity pinszscript — rewritesBINUTILS_VERSION,BINUTILS_SHORT_COMMIT_HASH,BINUTILS_SHA256_CHECKSUM(and newlib equivalents for stage 1)newlib-release)zchanges, and opens a PR againstdevWhy
z