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

chore: use cross for linux-arm builds #29

Merged
merged 14 commits into from
Jul 16, 2024
Merged

chore: use cross for linux-arm builds #29

merged 14 commits into from
Jul 16, 2024

Conversation

0xbe7a
Copy link
Contributor

@0xbe7a 0xbe7a commented Jul 12, 2024

Motivation

ubuntu-arm runners are not available in public repos

Changes

Use cargo-cross to cross-compile for linux-aarch

@0xbe7a 0xbe7a changed the title use cross for linux-arm builds chore: use cross for linux-arm builds Jul 12, 2024
@github-actions github-actions bot added the chore label Jul 12, 2024
@0xbe7a
Copy link
Contributor Author

0xbe7a commented Jul 16, 2024

Builds are now succeeding. I have used cross for all linux builds @pavelzw

.github/workflows/build.yml Outdated Show resolved Hide resolved
.github/workflows/build.yml Outdated Show resolved Hide resolved
@@ -33,18 +33,25 @@ jobs:
include:
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
cross: true
Copy link
Member

Choose a reason for hiding this comment

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

is there a benefit of using cross for x86?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Having a working cross-configuration, which includes a complete and reproducible non-rustc toolchain is preferable from a developer's standpoint as it makes debugging and testing easier. Cross can still make use of caching, so I don't think there are any major downsides to using it. Additionally, our CI ensures that the cross-configurations remain functional.

.github/workflows/build.yml Show resolved Hide resolved
0xbe7a and others added 3 commits July 16, 2024 17:06
Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com>
Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com>
@pavelzw pavelzw added this pull request to the merge queue Jul 16, 2024
@pavelzw pavelzw removed this pull request from the merge queue due to a manual request Jul 16, 2024
@pavelzw pavelzw enabled auto-merge July 16, 2024 15:53
@pavelzw pavelzw added this pull request to the merge queue Jul 16, 2024
Merged via the queue into main with commit af5ccd6 Jul 16, 2024
15 checks passed
@pavelzw pavelzw deleted the cross-build branch July 16, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants