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

Add support for Linux ARM64 and macOS ARM64 (Silicon) targets. #2449

Merged
merged 6 commits into from
Sep 3, 2021

Conversation

charleskorn
Copy link
Contributor

Currently blocked until a new version of kotlinx.coroutines is published with these targets (see Kotlin/kotlinx.coroutines#2904).

See #1743 (comment).

@JavierSegoviaCordoba
Copy link
Contributor

JavierSegoviaCordoba commented Sep 1, 2021

Can you add the new Apple simulator targets too (ios tvos and watchos)?

@charleskorn
Copy link
Contributor Author

Can you add the new Apple simulator targets too (ios tvos and watchos)?

Done.

@charleskorn
Copy link
Contributor Author

Looks like #2450 broke some tests - could you take a look @sksamuel?

@JavierSegoviaCordoba
Copy link
Contributor

Coroutines 1.5.2 and mt are available.

@sksamuel
Copy link
Member

sksamuel commented Sep 2, 2021

I hope 1.5.2 fixes my issue with Result cast exceptions :)

@sksamuel
Copy link
Member

sksamuel commented Sep 2, 2021

Looks like #2450 broke some tests - could you take a look @sksamuel?

Yep

kotlinx-coroutines only supports X64.
@charleskorn charleskorn marked this pull request as ready for review September 3, 2021 05:17
@charleskorn
Copy link
Contributor Author

This is ready for review @sksamuel.

@sksamuel sksamuel merged commit d183857 into kotest:master Sep 3, 2021
@sksamuel
Copy link
Member

sksamuel commented Sep 3, 2021

Awesome 👍🏼

@sksamuel sksamuel mentioned this pull request Sep 3, 2021
71 tasks
@sksamuel
Copy link
Member

sksamuel commented Sep 3, 2021

Don't know if this error means anything to you @charleskorn https://github.com/kotest/kotest/runs/3507598103?check_suite_focus=true

@JavierSegoviaCordoba
Copy link
Contributor

Not sure if kotlin.native.enableDependencyPropagation=false in gradle.properties can fix that

@JavierSegoviaCordoba
Copy link
Contributor

@sksamuel linuxArm64 isn't in kotlin coroutines:

        addTarget(presets.linuxX64)
        addTarget(presets.iosArm64)
        addTarget(presets.iosArm32)
        addTarget(presets.iosX64)
        addTarget(presets.macosX64)
        addTarget(presets.mingwX64)
        addTarget(presets.tvosArm64)
        addTarget(presets.tvosX64)
        addTarget(presets.watchosArm32)
        addTarget(presets.watchosArm64)
        addTarget(presets.watchosX86)
        addTarget(presets.watchosX64)
        addTarget(presets.iosSimulatorArm64)
        addTarget(presets.watchosSimulatorArm64)
        addTarget(presets.tvosSimulatorArm64)
        addTarget(presets.macosArm64)

@sksamuel
Copy link
Member

sksamuel commented Sep 3, 2021

The PR passed. I guess the PR workflow wasn't updated the same as the master workflow.

@JavierSegoviaCordoba
Copy link
Contributor

we should ask in coroutines for this target, but it is strange it doesn't exist yet

@JavierSegoviaCordoba
Copy link
Contributor

@charleskorn
Copy link
Contributor Author

Don't know if this error means anything to you @charleskorn https://github.com/kotest/kotest/runs/3507598103?check_suite_focus=true

Yep, that would be because kotlinx.coroutines doesn't support linuxArm64.

The PR passed. I guess the PR workflow wasn't updated the same as the master workflow.

The Linux PR workflow runs check, which should run everything that can be run on Linux (including building Linux ARM64 targets but not testing them), not sure why it didn't pick this up.

we should ask in coroutines for this target, but it is strange it doesn't exist yet

Sounds great, thanks for doing that.

In the meantime, do you want me to remove the linuxArm64 targets?

@sksamuel
Copy link
Member

sksamuel commented Sep 4, 2021 via email

charleskorn added a commit to charleskorn/kotest that referenced this pull request Sep 4, 2021
@charleskorn
Copy link
Contributor Author

I've opened #2460 to remove the Linux ARM64 target.

@JavierSegoviaCordoba
Copy link
Contributor

I created it too, but I forgot to modify the workflows, I will close it

sksamuel pushed a commit that referenced this pull request Sep 4, 2021
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