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

Support custom github runners (and arm64) #614

Merged
merged 6 commits into from
Dec 4, 2023
Merged

Conversation

milesj
Copy link
Contributor

@milesj milesj commented Nov 28, 2023

Indirectly implements: #324

I really need linux arm64 support soon, so I thought I would give this a shot.

I originally had a setting like arm64-linux-runner that I would use for linux arm64 triples, but it felt very restrictive. Instead, I went with a custom-runners map, that allows any triple to define the runner it wants to use. This is nice.

Working in plan/manifest:
Screenshot 2023-11-27 at 9 46 36 PM

Cargo.toml Outdated Show resolved Hide resolved
cargo-dist/src/lib.rs Outdated Show resolved Hide resolved
@milesj milesj changed the title [WIP] Support custom runners (supports arm64) [WIP] Support custom github runners (and arm64) Nov 28, 2023
Copy link
Contributor

@mistydemeo mistydemeo left a comment

Choose a reason for hiding this comment

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

Thank you so much! This is looking great, just a couple comments.

cargo-dist/src/backend/ci/github.rs Outdated Show resolved Hide resolved
cargo-dist/src/config.rs Outdated Show resolved Hide resolved
@mistydemeo
Copy link
Contributor

Thank you! I'm going to do some testing, but this looks good. A couple minor requests:

  • Are you up for rebasing? Sorry for introducing merge conflicts before this shipped!
  • Can you undo the changes to Cargo.toml? I assume your editor probably autoformatted it.

@milesj milesj changed the title [WIP] Support custom github runners (and arm64) Support custom github runners (and arm64) Nov 29, 2023
@milesj
Copy link
Contributor Author

milesj commented Nov 29, 2023

@mistydemeo Updated. Also added a test, but not sure if done correctly. I also tried updating snapshots, but it changed like almost all of them...

@milesj
Copy link
Contributor Author

milesj commented Nov 30, 2023

@mistydemeo Got the test working.

@mistydemeo
Copy link
Contributor

Great, thank you! I'll do some testing and then merge.

Copy link
Contributor

@mistydemeo mistydemeo left a comment

Choose a reason for hiding this comment

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

Thank you!

@mistydemeo mistydemeo merged commit 41e79b1 into axodotdev:main Dec 4, 2023
13 checks passed
@milesj milesj deleted the arm64 branch December 4, 2023 23:28
@milesj
Copy link
Contributor Author

milesj commented Dec 4, 2023

Awesome 👏

@mistydemeo
Copy link
Contributor

This has landed in the 0.6.0 prereleases, which are ready to try now, and will be in the final 0.6.0 release.

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