Skip to content
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

Build by strategy #940

Merged
merged 4 commits into from
Dec 17, 2024
Merged

Build by strategy #940

merged 4 commits into from
Dec 17, 2024

Conversation

kwk
Copy link
Collaborator

@kwk kwk commented Dec 17, 2024

This adds a workflow option to select which build-strategy to build for (e.g. big-merge or pgo at the moment.)

@kwk kwk requested a review from nikic December 17, 2024 10:29
@kwk kwk force-pushed the build-by-strategy branch from ff65f84 to 9a2136b Compare December 17, 2024 10:31
@@ -30,6 +38,7 @@ jobs:
container: fedora:39
steps:
- name: Setup Copr config file
if: github.event_name != 'workflow_dispatch' || (inputs.strategy == matrix.name)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be done in a way that doesn't require repeating the condition everywhere? Can the matrix itself be made conditional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It actually is configurable. I think one needs to pass in a payload for the matrix and remember that I have done it before. Give some time.

@kwk
Copy link
Collaborator Author

kwk commented Dec 17, 2024

@nikic I've implemented a dynamic matrix and tested it in some other repo.


jobs:
job1:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

job1 -> generate-matrix or something?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 25a16dd

)

if [[ '${{ inputs.strategy }}' == 'big-merge' ]]; then
NAMES='["big-merge"]'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 25a16dd

@kwk
Copy link
Collaborator Author

kwk commented Dec 17, 2024

@nikic ready for another review?

@kwk kwk merged commit fccfbe2 into fedora-llvm-team:main Dec 17, 2024
4 of 5 checks passed
@kwk kwk deleted the build-by-strategy branch December 17, 2024 16:04
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