`iosSimulatorArm64Test` and `macosArm64Test` are g...
# multiplatform
e
iosSimulatorArm64Test
and
macosArm64Test
are getting skipped on a Mac m1 with an arm64 jdk. The X64 tasks are working. Anyone know why they would get skipped?
e
amd64 or x64 jvm?
I'm guessing you're running under rosetta2, intentionally or not
e
I used sdkman to install java 17.0.3-zulu. I think they're supposed to pick one that's compatible with M1. Is there any way to check if I'm under rosetta2? I'm using a self hosted GitHub actions runner.
I'm not sure if the runner is doing anything weird, but running
arch -arm64 ./gradlew iosSimulatorArm64Test macosArm64Test
still results in the tasks getting skipped.
e
perhaps sdkman was under rosetta when it installed java
e
I don't think so, but I'm going to try reinstalling it. What's the best way to verify that it's using the arm64 jdk?
Running `cat
which java
| file -` prints
Mach-O 64-bit executable arm64
e
I'm not sure, then.
e
Running the task with
--info
yields
Copy code
Skipping task ':style-engine:macosArm64Test' as task onlyIf is false.
Which looks like it could only happen if the
executableFile
doesn't exist https://github.com/JetBrains/kotlin/blob/cca2680c7f1c3e690a9f4a56f13449f20ebfaa6d/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/tasks/KotlinNativeTest.kt#L47
I'm not sure what that means, but my scenario is that I have tests in
commonTest
and they run on all other targets (as well as the X64 Apple targets)