ci: add workflow to build parallel bisect apk#20388
Open
Ankita562 wants to merge 1 commit intoankidroid:mainfrom
Open
ci: add workflow to build parallel bisect apk#20388Ankita562 wants to merge 1 commit intoankidroid:mainfrom
Ankita562 wants to merge 1 commit intoankidroid:mainfrom
Conversation
7edffba to
5d16cf0
Compare
Contributor
|
This is not a ui change, so you should uncheck that from the pr checklist. |
Member
|
Could you show the output on your branch? |
5d16cf0 to
52d92ca
Compare
Author
https://github.com/Ankita562/Anki-Android/actions/runs/22682583500 |
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.
Purpose / Description
Adds a new manual GitHub Actions workflow to generate a parallel "bisect" APK from any specific commit hash.
This provides maintainers with a tool to easily build and share specific historical APKs with users to bisect longstanding issues that cannot be reproduced locally, without requiring local compilation.
Fixes
Approach
.github/workflows/build-bisect-apk.ymlutilizing theworkflow_dispatchtrigger.commit_hashtext input for the maintainer to specify the exact point in history to build.actions/checkout@v4to travel to the specified${{ inputs.commit_hash }}../gradlew assembleFullRelease -PcustomSuffix=.bisect -PcustomName="Anki Bisect"to generate the APK. This dynamically changes theapplicationIdso it installs cleanly alongside the user's main app without overwriting their actual flashcard data.actions/upload-artifact@v4to securely deliver the resulting.apkto the GitHub Actions dashboard.How Has This Been Tested?
I pushed this workflow to my personal fork, manually triggered it via the Actions tab, and provided a recent commit hash. The workflow successfully checked out the specific commit, built the
assembleFullReleaseAPK with the injected Gradle properties, and successfully uploaded the.zipartifact containing the parallel APK. All standard AnkiDroid CI checks (Unit Tests, Lint, etc.) also passed successfully on this branch.Learning (optional, can help others)
Learned how to bridge GitHub Actions (
workflow_dispatchinputs) with Android build systems by passing custom Gradle properties (-P) directly through the terminal command to dynamically override theapplicationIdSuffixandapp_name.Checklist
Please, go through these checks before submitting the PR.