-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
KTOR-5753: Enable linuxArm64 builds #3587
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead copying, could you move this file into linuxMain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try that, I think I was trying linux
before.
gradle.properties
Outdated
@@ -32,8 +32,8 @@ kotlin.native.binary.memoryModel=experimental | |||
#kotlinx.atomicfu.enableJsIrTransformation=true | |||
|
|||
kotlin_version=1.8.10 | |||
coroutines_version=1.6.4 | |||
atomicfu_version=0.20.0 | |||
coroutines_version=1.7.0-RC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.7.0 is released
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Raised #3609, which contains more things than the automatic one.
You should be able to move many copied files into |
@hfhbd The project didn't have a |
I am okay with this, but I am not member of Ktor. Especially with serialization 1.5.1, we could add the linuxArm64 target to more ktor modules. |
Nice, I'm planning to keep this PR up-to-date until it's ready to be merged. There are two blocker PRs in the description, one for coroutines update in this repo, and another one for kotlinx-html, so I think we need some ktor/JB sponsor here. |
Just rebased all the work on top of current Main pending task to get this across now is Kotlin/kotlinx.html#213 |
@e5l this one is now ready to review. |
@bcmedeiros could you rebase it on main? |
@e5l I thought you'd squash merge it. |
Thanks for the quick answer! No problem, I'll wait. The kotlinx.html is published, and I also want to run tests the rebased version |
@e5l just pushed a single commit with the same net result, let me know if you need anything else :) |
I was already using the new pusblished version of |
@e5l is any of that related to arm support? Should we split the |
Well, kotlinx.html does not specify the jvmtoolchain, so it uses the jvm from TeamCity, which is Java 11, but ktor requires Java 8. Ideally, kotlinx.html (and ktor) should specify the jvmtoolchain explicitly. |
@hfhbd, yep. WIP |
@bcmedeiros, we can't. There was no arm version for 0.8.*. I will make new release soon |
kotlinx.html |
@e5l done :) |
@bcmedeiros, Awesome Job! Thanks. Merged |
Subsystem
Server and Client
Motivation
https://youtrack.jetbrains.com/issue/KTOR-5753
Solution
This is spike to enable linuxArm64 for ktor.
Caveats:
This is usingdone, Upgrade kotlinx-coroutines to 1.7.1 #3609. ✅kotlinx-coroutines
1.7.0-RC
, so we should probably wait for the final GA release, and possibly also make this upgrade as a separate PR. Happy to do that if you guys think it's the best wayThis is using an un-published version of. Using kotlinx.html 0.9.0 ✅kotlinx-html
containing Enable linuxArm64 native target Kotlin/kotlinx.html#213, as the last published version does not supportlinuxArm64
I ended up copying a few files fromDone, files are not copied anymore. ✅linuxX64
to the the newlinuxArm64
. Are we planning to introduce a commonlinux
source set?Any feedback? Happy to keep helping with this as I need ktor server running on linux arm for one of my projects.