-
Notifications
You must be signed in to change notification settings - Fork 11
Extract toolchain variant build steps from advanced.yml to variant.yml
#319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
advanced.yml to variant.ymladvanced.yml to variant.yml
7f91326 to
c20c9ba
Compare
| push: | ||
| branches: | ||
| - main | ||
| pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be reverted before merge.
| branches: | ||
| - main | ||
| pull_request: | ||
| workflow_dispatch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be reverted before merge.
| rebase_branch: | ||
| description: 'Name of temporary branch used to verify the rebase' | ||
| required: true | ||
| default: 'rebase-upstream' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be reverted before merge.
| ORIGIN_BRANCH: ${{ inputs.origin_branch || 'woarm64' }} | ||
| UPSTREAM_BRANCH: ${{ inputs.upstream_branch || 'master' }} | ||
| REBASE_BRANCH: ${{ inputs.rebase_branch || 'rebase-upstream' }} | ||
| REBASE_BRANCH: ${{ inputs.rebase_branch || 'woarm64' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be reverted before merge.
|
|
||
| jobs: | ||
| start-binutils-rebase: | ||
| if: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and all the following if: false to be reverted before merge.
| ${{ env.BACKUP_BRANCH }} | ||
| build: | ||
| needs: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be reverted before merge.
| gcc_branch: ${{ inputs.rebase_branch || 'rebase-upstream' }} | ||
| mingw_branch: ${{ inputs.rebase_branch || 'rebase-upstream' }} | ||
| cygwin_branch: ${{ inputs.rebase_branch || 'rebase-upstream' }} | ||
| binutils_branch: ${{ inputs.rebase_branch || 'woarm64' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be reverted before merge.
advanced.yml to variant.ymladvanced.yml to variant.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR extracts the toolchain variant build steps from advanced.yml into a new variant.yml, and updates related workflows to call or adjust to this new workflow.
- Introduce a standalone
variant.ymlworkflow to handle per-variant build logic. - Update
rebase.ymlto rely on the new workflow and disable per-repo rebase jobs. - Adjust triggers in
main.ymland add a new strip script.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| .github/workflows/variant.yml | New workflow for building toolchain variants |
| .github/workflows/rebase.yml | Updated to call variant workflow, disable individual rebase jobs |
| .github/workflows/main.yml | Removed the pull_request trigger |
| .github/scripts/strip-host-binaries.sh | Added script for stripping host binaries |
Comments suppressed due to low confidence (1)
.github/workflows/main.yml:6
- Removing the pull_request trigger will disable workflow runs on pull requests. Verify this change aligns with expected CI behavior.
- pull_request:
c92e8d8 to
a75d7bf
Compare
517afdb to
de7566d
Compare
de7566d to
5efa435
Compare
This PR aspires to detatch and abstract the process of building a single variant of the toolchain from the rest of the process - using it for building tested packages as the size of the
advance.ymlworkflow is alredy getting out of hands. This should help keeping the toolchain build process isolated from the rest of theadvanced.ymlworkflow and also allow to re-use this new workflow for others.