kotlin-multiplatform-diff icon indicating copy to clipboard operation
kotlin-multiplatform-diff copied to clipboard

Build all artifacts in a single MacOS environment

Open petertrr opened this issue 1 year ago • 2 comments

Thanks for the cross-compilation support, it is possible to build artifacts for all the required platforms from a MacOS machine. This should be used for the release workflow. For the regular CI workflow, a Linux machine should be kept.

As a side task, automatic creation of a Github release should be made optional. Github supports creation of a tag and a release from the Web UI, which is oftentimes more convenient than manual creation of a tag from git.

petertrr avatar Jun 22 '24 16:06 petertrr

Since Kotlin 2.1 it is possible to cross-compile every K/N target from a single host (e.g. Linux), by enabling

kotlin.native.enableKlibsCrossCompilation

https://youtrack.jetbrains.com/issue/KT-71290

lppedd avatar Jan 20 '25 14:01 lppedd

Tested under https://github.com/lppedd/kotlin-multiplatform-diff/pull/3 btw, seems to work as expected.

You'll have to adjust the publishing step tho.

lppedd avatar Jan 20 '25 14:01 lppedd