Repository navigation
Conversation
The Kotlin library job cross compiles the sdk for eleven release targets and then runs the gradle build, 75 to 115 minutes per run, on every PR, even though a PR publishes nothing. PRs now run it only when they touch the bindings, the proto sources or the build files, the Rust unit tests still compile the libs workspace on the host, and branch protection requires just `linux`, so unrelated PRs merge without waiting for this check. The full build still runs for pushes to main, gl-sdk-* release tags and workflow_dispatch. The push trigger said master, a branch this repository no longer has, so main was never built after a merge; naming main closes that gap and keeps the gl-sdk release and the Maven Central pipeline downstream continuously fed.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Kotlin library workflow runs one macOS job that release-compiles the sdk for eleven targets (4 Android ABIs, 3 iOS, 2 macOS, 2 Linux via zig, 2 Windows via cargo-xwin), generates the Kotlin bindings and runs the gradle build. That takes 75-115 minutes per run (recent: 1h54, 1h24, 1h25, 1h13, 1h34, 1h20, 1h19) and it gates every PR even though a PR never publishes anything. #776, a
libs/gl-pluginchange, waited on it after all other checks had passed.Change
PRs now run the build only when they touch what the bindings are actually built from:
libs/gl-sdk*/**(gl-sdk, gl-sdk-android, gl-sdk-cli, gl-sdk-napi)libs/uniffi-bindgen/**,libs/proto/**build/**,Taskfile.yml,Cargo.tomlNo cheap smoke variant is added: Rust Unit Test already compiles the whole
libsworkspace on the host for every PR, so plain Rust changes keep pre-merge coverage; what only this workflow checks is the cross-target and gradle packaging, and binding-path PRs still get that in full.The full build still runs, unchanged, for:
main— the trigger previously namedmaster, which this repository no longer has, so main was never built after a merge (all branch-push runs of this workflow are tags; none on main). Namingmaincloses that gap and keeps continuous coverage feeding the gl-sdk releases and the Maven Central pipeline downstream,gl-sdk-*release tag,workflow_dispatchruns (new).Also fixes the
"Puiblish to Maven"step-name typo.Merge-safety
Branch protection on
mainrequires only thelinuxstatus check; Kotlin library is not a required check, so PRs whose paths don't match simply merge without this check. No workflow consumesglsdk-artifact; the Maven Central release pipeline consumes the bundle attached togl-sdk-v*releases, which the tag trigger still builds.Note for #768
#768 rewrites this same
on:block (addingworkflow_call, which is unaffected by the path filter) but keepspull_request: {}unfiltered. When it is rebased, keep thepaths:above, or it silently restores the full build to every PR.