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

Generate CI runners for build matrix dynamically #483

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Jan 7, 2025

No description provided.

Comment on lines +241 to +247
# If only free runners are allowed, reduce to a subset
if args.free_runners:
runners = {
runner: runner_config
for runner, runner_config in runners.items()
if runner_config.get("free")
}
Copy link
Member Author

Choose a reason for hiding this comment

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

We can hook this up for forks, #431

Comment on lines +164 to +166
# If `run` is in the config, use that — otherwise, default to if the
# runner architecture matches the build architecture
"run": str(config.get("run", runners[runner]["arch"] == arch)).lower(),
Copy link
Member Author

Choose a reason for hiding this comment

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

Once we do #431, we might not have access to the runners needed for run. We'll have to do something a bit more complicated for PGO targets in that case but I don't handle this here.

Comment on lines +8 to +12
# TODO: Enable this runner to perform native builds for aarch64
# depot-ubuntu-22.04-arm:
# arch: aarch64
# platform: linux
# free: 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.

Next, I'm going to try to enable PGO on aarch64 linux with this runner

@zanieb zanieb merged commit ec55e88 into main Jan 7, 2025
300 checks passed
@zanieb zanieb deleted the zb/runners branch January 7, 2025 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants