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: add support for i386 #52

Merged
merged 1 commit into from
Sep 11, 2024
Merged

chore: add support for i386 #52

merged 1 commit into from
Sep 11, 2024

Conversation

diegomrsantos
Copy link
Contributor

@diegomrsantos diegomrsantos commented Sep 8, 2024

This PR reuses the install_nim action from nim-libp2pto install Nim i386. We aren't running the test on i386- as GitHub runners are amd64, but only using Nim i386.

It also uses int64 instead of int for VarIntCompatible and PacketNumber to support i386.

@diegomrsantos diegomrsantos force-pushed the add-support-for-i386 branch 5 times, most recently from 206fddd to 62e7325 Compare September 8, 2024 21:57
@diegomrsantos diegomrsantos changed the base branch from main to add-nim-2-to-ci September 8, 2024 22:12
@diegomrsantos diegomrsantos force-pushed the add-support-for-i386 branch 3 times, most recently from 2d5a971 to 215912a Compare September 9, 2024 15:30
@diegomrsantos diegomrsantos marked this pull request as ready for review September 9, 2024 16:07
.github/workflows/test.yml Outdated Show resolved Hide resolved
@diegomrsantos diegomrsantos changed the base branch from add-nim-2-to-ci to main September 11, 2024 11:07
@diegomrsantos diegomrsantos changed the title Add support for i386 chore: add support for i386 Sep 11, 2024
Copy link

@lchenut lchenut left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -2,7 +2,7 @@ import std/math
import pkg/stew/endians2

type
VarIntCompatible* = range[0..2^62-1]
VarIntCompatible* = range[0'i64..2'i64^62-1]

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It could be addressed in a new PR. What would you recommend in this case?

@diegomrsantos diegomrsantos merged commit ddcb31f into main Sep 11, 2024
8 checks passed
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.

3 participants