John O'Reilly
04/18/2023, 5:24 PMrusshwolf
04/18/2023, 6:46 PMjvmVersion
to control this in CI.John O'Reilly
04/18/2023, 6:49 PMname: KMMBridge Publish Release
on: workflow_dispatch
jobs:
call-kmmbridge-publish:
uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/faktorybuild.yml@v0.8
russhwolf
04/18/2023, 6:51 PMuses: ...
with:
jvmVersion: 17
John O'Reilly
04/18/2023, 6:55 PMJohn O'Reilly
04/18/2023, 7:21 PMJohn O'Reilly
04/19/2023, 9:07 PMrusshwolf
04/19/2023, 9:42 PMuses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/faktorybuild.yml@a8bdf519fd761715b9c77cee38bb1545f29bf942
John O'Reilly
04/20/2023, 11:46 AMrusshwolf
04/20/2023, 1:43 PMJohn O'Reilly
04/20/2023, 1:44 PMrusshwolf
04/20/2023, 1:45 PMJohn O'Reilly
04/20/2023, 1:45 PMJohn O'Reilly
04/20/2023, 1:46 PMJohn O'Reilly
04/20/2023, 1:46 PMrusshwolf
04/20/2023, 1:46 PMrusshwolf
04/20/2023, 1:49 PMJohn O'Reilly
04/20/2023, 2:20 PMrusshwolf
04/20/2023, 2:44 PMJohn O'Reilly
04/20/2023, 3:51 PMjvmVersion
after updating to use that https://github.com/joreilly/Confetti/actions/runs/4756301825John O'Reilly
04/20/2023, 3:51 PMThe workflow is not valid. .github/workflows/kmmbridgepnblish.yml (Line: 8, Col: 19): Invalid input, jvmVersion is not defined in the referenced workflow.
John O'Reilly
04/20/2023, 3:51 PMname: KMMBridge Publish Release
on: workflow_dispatch
jobs:
call-kmmbridge-publish:
uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/faktorybuild.yml@a8bdf519fd761715b9c77cee38bb1545f29bf942
with:
jvmVersion: 17
John O'Reilly
04/20/2023, 6:05 PMJohn O'Reilly
04/20/2023, 9:21 PMjvmVersion
.....I'm assuming I have some small syntax issues (didn't realise until now just how much I hated yaml 🙂 )russhwolf
04/20/2023, 9:30 PM2e121ace461e0004eb079926c1f6e74afaee3e3d
insteadrusshwolf
04/20/2023, 9:30 PMJohn O'Reilly
04/20/2023, 9:32 PMJohn O'Reilly
04/20/2023, 9:37 PMTask 'kmmBridgePublish' not found in root project 'Confetti' and its subprojects.
russhwolf
04/20/2023, 9:41 PMrusshwolf
04/20/2023, 9:42 PMrusshwolf
04/20/2023, 9:46 PMb795422fddc0bbedd1239857aa46c0d9520889c2
John O'Reilly
04/20/2023, 9:48 PMJohn O'Reilly
04/20/2023, 9:57 PMrusshwolf
04/20/2023, 10:00 PMrusshwolf
04/20/2023, 10:05 PMJohn O'Reilly
05/21/2023, 11:08 AMrusshwolf
05/21/2023, 4:03 PMrusshwolf
06/08/2023, 6:53 PMgithubReleaseArtifacts()
but didn't replace it with anything, so the plugin didn't have anywhere to push to. Because it didn't see an artifact manager anymore, it wouldn't configure the kmmBridgePublish
task.John O'Reilly
06/08/2023, 6:57 PMJohn O'Reilly
06/08/2023, 7:07 PMrusshwolf
06/08/2023, 7:08 PMrusshwolf
06/08/2023, 8:38 PMfaktorybuild.yml
to faktorybuildbranches.yml
. This will publish Package.swift updates to a separate branch. It'll be tagged so you can find it from the github UI, and Xcode will know how to find it and pick it up, but you won't see the most up-to-date version info in the package.swift on main anymore.
If you'd rather keep things in main, it's probably also possible to configure the github actions runner to override the branch protection, but I don't know how to do that off-hand.John O'Reilly
06/08/2023, 9:18 PMrusshwolf
06/08/2023, 10:27 PMJohn O'Reilly
06/09/2023, 8:41 AMJohn O'Reilly
06/09/2023, 8:45 AMJohn O'Reilly
06/09/2023, 9:22 AMJohn O'Reilly
06/09/2023, 9:23 AMJohn O'Reilly
06/09/2023, 9:24 AMrusshwolf
06/09/2023, 6:38 PMJohn O'Reilly
06/09/2023, 6:40 PMJohn O'Reilly
06/09/2023, 6:42 PMrusshwolf
06/09/2023, 6:43 PMJohn O'Reilly
06/09/2023, 6:43 PMrusshwolf
06/09/2023, 6:43 PMrusshwolf
06/09/2023, 7:20 PMJohn O'Reilly
06/09/2023, 7:24 PMJohn O'Reilly
06/10/2023, 1:27 PMJohn O'Reilly
06/10/2023, 1:41 PMJohn O'Reilly
06/10/2023, 2:07 PMConfettiSwiftPackage
one is picking up xcframework locally whereas the KMMBridge based one is using following....though error above seems to indicate it had issue before that checking out from repo
let remoteKotlinUrl = "<https://maven.pkg.github.com/joreilly/Confetti/Confetti/shared-kmmbridge/0.8.3/shared-kmmbridge-0.8.3.zip>"
John O'Reilly
06/10/2023, 2:10 PM<https://maven.pkg.github.com/joreilly/Confetti/Confetti/shared-kmmbridge/0.8.3/shared-kmmbridge-0.8.3.zip>
I'm prompted for username/password.....is expectation that XCode can retrieve this?John O'Reilly
06/10/2023, 2:19 PMJohn O'Reilly
06/10/2023, 2:21 PMJohn O'Reilly
06/10/2023, 2:38 PMJohn O'Reilly
06/10/2023, 2:41 PMrusshwolf
06/10/2023, 10:39 PMrusshwolf
06/10/2023, 10:39 PMJohn O'Reilly
06/11/2023, 7:14 PMJohn O'Reilly
06/11/2023, 7:17 PMJohn O'Reilly
06/11/2023, 7:19 PMrusshwolf
06/11/2023, 7:39 PMJohn O'Reilly
06/11/2023, 7:39 PMrusshwolf
06/11/2023, 7:40 PMrusshwolf
06/11/2023, 7:41 PMJohn O'Reilly
06/11/2023, 7:41 PM~/.netrc
or Mac Keychain Access authentication info."russhwolf
06/11/2023, 7:42 PMJohn O'Reilly
06/11/2023, 7:42 PMrusshwolf
06/11/2023, 7:42 PMJohn O'Reilly
06/11/2023, 7:43 PMrusshwolf
06/11/2023, 7:44 PMrusshwolf
06/11/2023, 7:45 PMJohn O'Reilly
06/11/2023, 8:32 PMJohn O'Reilly
06/11/2023, 9:04 PM./gradlew kmmBridgePublish
still work (from that page)?russhwolf
06/11/2023, 9:23 PMJohn O'Reilly
06/12/2023, 3:02 PMrusshwolf
06/12/2023, 3:04 PMENABLE_PUBLISHING=true
John O'Reilly
06/12/2023, 3:56 PMJohn O'Reilly
06/12/2023, 4:00 PMKMMBridge Github operations need a repo param or property GITHUB_REPO
John O'Reilly
06/12/2023, 4:01 PMJohn O'Reilly
06/12/2023, 4:08 PMJohn O'Reilly
06/12/2023, 4:08 PMrusshwolf
06/12/2023, 4:09 PMjoreilly/confetti
and GITHUB_PUBLISH_TOKEN which gets generated automatically in actionsrusshwolf
06/12/2023, 4:10 PMrusshwolf
06/12/2023, 4:11 PMrusshwolf
06/12/2023, 4:13 PMJohn O'Reilly
06/12/2023, 4:13 PMJohn O'Reilly
06/12/2023, 4:13 PMrusshwolf
06/12/2023, 4:15 PMJohn O'Reilly
06/12/2023, 4:18 PMJohn O'Reilly
06/12/2023, 4:18 PMrusshwolf
06/12/2023, 4:18 PMJohn O'Reilly
06/12/2023, 4:19 PMrusshwolf
06/12/2023, 4:20 PMJohn O'Reilly
06/12/2023, 4:20 PMJohn O'Reilly
06/12/2023, 4:21 PMJohn O'Reilly
06/12/2023, 4:33 PMaddGithubPackagesRepository
?russhwolf
06/12/2023, 4:33 PMrusshwolf
06/12/2023, 4:34 PMJohn O'Reilly
06/12/2023, 5:06 PMcall-kmmbridge-publish:
uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/faktorybuild.yml@v0.9
with:
jvmVersion: 17
env:
MAVEN_USERNAME: ${{ secrets.REPSY_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.REPSY_PASSWORD }}
John O'Reilly
06/12/2023, 5:07 PMUnexpected value 'env'
but I could be missing something basicJohn O'Reilly
06/12/2023, 5:13 PMrusshwolf
06/12/2023, 5:20 PMJohn O'Reilly
06/12/2023, 5:22 PMsteps
and no workflow called in uses
for the following jobs: env` thenJohn O'Reilly
06/12/2023, 5:22 PMJohn O'Reilly
06/12/2023, 5:23 PMrusshwolf
06/12/2023, 5:23 PMrusshwolf
06/12/2023, 5:23 PMJohn O'Reilly
06/12/2023, 5:27 PMrusshwolf
06/12/2023, 6:00 PMJohn O'Reilly
06/12/2023, 6:25 PMrusshwolf
06/12/2023, 8:57 PMsecrets:
gradle_params: -PMAVEN_USER=... -PMAVEN_PASSWORD=...
(where secrets is at the same level as inputs) and then update your build.gradle to do
credentials {
username = properties["MAVEN_USER"]
password = properties["MAVEN_PASSWORD"]
}
John O'Reilly
06/12/2023, 9:11 PMJohn O'Reilly
06/12/2023, 9:13 PMJohn O'Reilly
06/12/2023, 9:14 PMpublishing {
// Externally set these values. Generally ~/.gradle/gradle.properties or CI Secrets
val publishUsername: String by project
val publishPassword: String by project
repositories {
maven {
url = uri("<https://someservice/path/to/repo>")
credentials {
username = publishUsername
password = publishPassword
}
}
}
}
russhwolf
06/12/2023, 9:23 PMJohn O'Reilly
06/12/2023, 9:28 PMJohn O'Reilly
06/15/2023, 7:42 PMkmmBridgePublish
for what we were doing so updated to use that https://github.com/joreilly/Confetti/blob/main/.github/workflows/publish-kmmbridge.ymlJohn O'Reilly
06/15/2023, 7:44 PMGITHUB_PUBLISH_TOKEN
etc that we're still passing that.....John O'Reilly
06/15/2023, 7:45 PMJohn O'Reilly
06/15/2023, 7:45 PMrusshwolf
06/15/2023, 7:46 PMrusshwolf
06/15/2023, 7:48 PMJohn O'Reilly
06/15/2023, 8:00 PMAny environment variables set in an env context defined at the workflow level in the caller workflow are not propagated to the called workflow. For more information, see "Variables" and "Contexts."
russhwolf
06/15/2023, 8:02 PM