I tried compiling using Github Action but it ended up failing. It took me a long time to resolve the conflict in the local compilation environment of Android Studio.
Could you please tell me how to correct the compilation path of Action, or provide a publicly released apk?
Thank you!
Run echo "sdk.dir=${ANDROID_HOME}" > local.properties
>> bin/init/action/library.sh
error: pathspec 'library/core/*' did not match any file(s) known to git
Submodule 'external/editorkit' (https://github.com/dyhkwong/editorkit) registered for path 'external/editorkit'
Submodule 'external/preferencex' (https://github.com/SagerNet/preferencex-android) registered for path 'external/preferencex'
Submodule 'external/termux-view' (https://github.com/dyhkwong/termux-view) registered for path 'external/termux-view'
Cloning into '/home/runner/work/SagerNet/SagerNet/external/editorkit'...
Cloning into '/home/runner/work/SagerNet/SagerNet/external/preferencex'...
Cloning into '/home/runner/work/SagerNet/SagerNet/external/termux-view'...
Submodule path 'external/editorkit': checked out 'eb73957390c889ed7dee27e51924e8fbd52a2fd7'
Submodule path 'external/preferencex': checked out '8bdb0c6ae44f378b073c6a1c850d03d729b70ff8'
Submodule path 'external/termux-view': checked out '2cc959[17](https://github.com/luminouskk/SagerNet/actions/runs/6063828902/job/16451691896#step:6:18)ea74f823c42e988b53e0eda2b844b4da'
Downloading https://services.gradle.org/distributions/gradle-7.5-bin.zip
...........10%............20%...........30%............40%...........50%............60%...........70%............80%...........90%............100%
Welcome to Gradle 7.5!
Here are the highlights of this release:
- Support for Java [18](https://github.com/luminouskk/SagerNet/actions/runs/6063828902/job/16451691896#step:6:19)
- Support for building with Groovy 4
- Much more responsive continuous builds
- Improved diagnostics for dependency resolution
For more details see https://docs.gradle.org/7.5/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :buildSrc
WARNING: Unsupported Kotlin plugin version.
The `embedded-kotlin` and `kotlin-dsl` plugins rely on features of Kotlin `1.6.[21](https://github.com/luminouskk/SagerNet/actions/runs/6063828902/job/16451691896#step:6:22)` that might work differently than in the requested version `1.8.10`.
> Task :buildSrc:compileKotlin
'compileJava' task (current target is 11) and 'compileKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.
By default will become an error since Gradle 8.0+! Read more: https://kotl.in/gradle/jvm/target-validation
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain
> Task :buildSrc:pluginDescriptors
> Task :buildSrc:processResources NO-SOURCE
> Task :buildSrc:processTestResources NO-SOURCE
> Task :buildSrc:compileJava NO-SOURCE
> Task :buildSrc:compileGroovy NO-SOURCE
> Task :buildSrc:classes UP-TO-DATE
> Task :buildSrc:jar
:jar: No valid plugin descriptors were found in META-INF/gradle-plugins
> Task :buildSrc:inspectClassesForKotlinIC
> Task :buildSrc:assemble
> Task :buildSrc:compileTestKotlin NO-SOURCE
> Task :buildSrc:pluginUnderTestMetadata
> Task :buildSrc:compileTestJava NO-SOURCE
> Task :buildSrc:compileTestGroovy NO-SOURCE
> Task :buildSrc:testClasses UP-TO-DATE
> Task :buildSrc:test NO-SOURCE
> Task :buildSrc:validatePlugins
> Task :buildSrc:check
> Task :buildSrc:build
Error: The operation was canceled.
I don't consider publishing releases for now. Maybe later?
Original author does not want others to simply modify and re-publish it with no understanding of basic development.
You need to generated a keystore and replace `release.keystore` with your own.
Please refer to `buildSrc/src/main/kotlin/Helpers.kt` about what you need to add to your repository settings (to compile it with Github Actions), and refer to workflow files about how to compile it locally.
I tried compiling using Github Action but it ended up failing. It took me a long time to resolve the conflict in the local compilation environment of Android Studio.
Could you please tell me how to correct the compilation path of Action, or provide a publicly released apk?
Thank you!