Does publishing from any host mean that we can also run unit tests from any host? That doesn't seem to be working with one of my projects, but I wanted to make sure.
🚫 2
eygraber
11/27/2024, 8:33 PM
@jw is that because the test is run against a platform binary, and not a klib?
j
jw
11/27/2024, 8:34 PM
Fundamentally a particular host can only run binaries for that specific host.
jw
11/27/2024, 8:35 PM
This is true of every language. You can take a C file and cross-compile it to Windows and Mac from Linux using Zig but you can't run anything except the Linux executable on the Linux host.
e
eygraber
11/27/2024, 8:36 PM
So something at the compiler level (like detekt) would work, because it's "pre-binary"?
j
jw
11/27/2024, 8:38 PM
Yes. Detekt doesn't run your code, it analyzes it statically.
e
eygraber
11/27/2024, 8:42 PM
Got it, so I guess I can't fully stop using mac runners on CI 😅