-
Notifications
You must be signed in to change notification settings - Fork 9
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
Convert to multiplatform #11
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.
Thanks!
Enabled strict 'explicitApi' mode for all modules |
hey - wondering why you closed the PR? |
Closed by mistake |
Meanwhile, for development purposes, Github Packages may be used as a maven repository that supports Kotlin MP using this ugly workaround(https://github.community/t/download-from-github-package-registry-without-authentication/14407/44). Are any changes required in the CI to build Kotlin MP projects? |
"CO" ? |
CI, fixed the typo =] |
ah guessed so but was not sure - the CI is just executing gradle commands - but I would also be open to add Github Actions here if this would be easier. I would prefer github packages over maven central / bintray - eve though the workaround looks ugly .. |
Yes, I focus on adding JS(browser, node) as an additional target for my use-case, besides JS is quite popular in the blockchain domain. Other targets such as iOS or other native targets may be added later.. |
Cool - completely agree that JS would be the most interesting target currently. |
By the way, why is the root package 'org.komputing.khex' while the artifact is published under 'com.github.komputing.khex'? |
because I do not want to bind to github too much. Really hope in the future we can have something equally user-friendly but decentralized and not in the hand of Microsoft ;-) |
Convert to multiplatform
Convert to multiplatform
…onvert_to_multiplatform # Conflicts: # .github/workflows/release.yml
@ligi The conversion is complete including usage of GitHub Actions workflows:
This allows deploying kotlin multiplatform artifacts to GitHub Packages while also supporting jitpack for jvm-only variant. Before this can be declared 'ready' I need you to perform the following:
|
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.
Great work - just the repo needs to be changed in some part of the docs. Will do the steps for the machine user you outlined later today.
README.md
Outdated
@@ -1,16 +1,46 @@ | |||
![CI](https://github.com/fullkomnun/KHex/workflows/Continuous%20Integration/badge.svg) |
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.
![CI](https://github.com/fullkomnun/KHex/workflows/Continuous%20Integration/badge.svg) | |
![CI](https://github.com/komputing/KHex/workflows/Continuous%20Integration/badge.svg) |
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.
commited
README.md
Outdated
```kotlin | ||
repositories { | ||
maven { | ||
name = "fullkomnun/KHex GitHub Packages" |
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.
name = "fullkomnun/KHex GitHub Packages" | |
name = "komputing/KHex GitHub Packages" |
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.
commited
README.md
Outdated
repositories { | ||
maven { | ||
name = "fullkomnun/KHex GitHub Packages" | ||
url = uri("https://maven.pkg.github.com/fullkomnun/KHex") |
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.
url = uri("https://maven.pkg.github.com/fullkomnun/KHex") | |
url = uri("https://maven.pkg.github.com/komputing/KHex") |
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.
commited
Sorry it takes a bit longer. The step of creating a user dragged in the need to setup email for komputing.org |
@fullkomnun sorry for the delay - here the output:
|
Ready to go, if everything goes well - KHash will follow |
cool - unfortunately there seems to be a problem with actions: https://github.com/komputing/KHex/runs/1944045614 Was just waiting for my old CI and it was happy - should have waited for the actions also - remembering for next time ..-) |
Yes, CI has built and ran tests successfully but publication has failed, although i do see published artifacts for 'master-SNAPSHOT'. Can you re-run the CI workflow maybe? |
cool - yea the rerun worked |
And I was able to fetch it from my KHash fork using the credentials so pushed the changes. |
Released 1.1.0 |
An attempt to convert the library to Kotlin multiplatform:
but targeting Gradle Kotlin DSL
Inspired by "Kotlin Multiplatform And Github Actions" and it's companion template repo
and while GitHub Actions can be a great fit for CI, GitHub Packages has limitations that makes it useless for OSS with no apparent resolution so far