Skip to content

Conversation

@Blackhex
Copy link
Member

@Blackhex Blackhex commented May 29, 2025

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.yml workflow is alredy getting out of hands. This should help keeping the toolchain build process isolated from the rest of the advanced.yml workflow and also allow to re-use this new workflow for others.

@Blackhex Blackhex changed the title Extract toolchain variant build steps from advanced.yml to variant.yml WIP: Extract toolchain variant build steps from advanced.yml to variant.yml May 29, 2025
@Blackhex Blackhex force-pushed the variant-yml branch 6 times, most recently from 7f91326 to c20c9ba Compare May 30, 2025 11:17
@Blackhex Blackhex self-assigned this May 30, 2025
push:
branches:
- main
pull_request:
Copy link
Member Author

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:
Copy link
Member Author

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'
Copy link
Member Author

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' }}
Copy link
Member Author

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
Copy link
Member Author

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: [
Copy link
Member Author

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' }}
Copy link
Member Author

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.

@Blackhex Blackhex requested a review from Copilot June 2, 2025 14:24
@Blackhex Blackhex changed the title WIP: Extract toolchain variant build steps from advanced.yml to variant.yml Extract toolchain variant build steps from advanced.yml to variant.yml Jun 2, 2025
@Blackhex Blackhex marked this pull request as ready for review June 2, 2025 14:24
@Blackhex Blackhex changed the base branch from main to strip-host-binaries June 2, 2025 14:25
Copy link

Copilot AI left a 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.yml workflow to handle per-variant build logic.
  • Update rebase.yml to rely on the new workflow and disable per-repo rebase jobs.
  • Adjust triggers in main.yml and 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:

Base automatically changed from strip-host-binaries to main June 2, 2025 14:33
@Blackhex Blackhex changed the base branch from main to upstream-workflow June 3, 2025 14:09
@Blackhex Blackhex force-pushed the variant-yml branch 4 times, most recently from c92e8d8 to a75d7bf Compare June 3, 2025 14:55
@Blackhex Blackhex force-pushed the upstream-workflow branch 2 times, most recently from 517afdb to de7566d Compare June 12, 2025 09:54
@Blackhex Blackhex force-pushed the upstream-workflow branch from de7566d to 5efa435 Compare June 12, 2025 11:03
Base automatically changed from upstream-workflow to main June 16, 2025 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants