-
Notifications
You must be signed in to change notification settings - Fork 878
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
[build] Add Android build action to GitHub CI #2149
[build] Add Android build action to GitHub CI #2149
Conversation
0edcbd9
to
d1e6c30
Compare
When running from Github CI Action, the initial SCRIPT_DIR: /home/runner/work/srt/srt/scripts/build-android
uname: Linux
readlink -f $0: /home/runner/work/_temp/01987a7f-8cc7-4d32-818f-f57770e2a163.sh
New SCRIPT_DIR: /home/runner/work/_temp |
@maxsharabayko I suggest to create new script, like build-android-ci, that will call mkssl/mkmbedtls and mksrt.
|
@maxsharabayko it s not not required to re-build openssl on each push. This will be waste of time. Do the following: comment out srt part from build-android and run it on local machine with -e openssl and then with -e mbedtls. You will get "sysroots" for 4 architectures in working directory. Copy it somewhere to travis machine, then just pass $INSTALL_DIR to mksrt. mksrt -n NDK_ROOT -a 21 -t arm64-v8a -e openssl -s /path/to/srt/repo/root -i /travis/prebuilt_android_enc_libs/arm64-v8a |
I am not sure if we could store them on the CI machine provided by GitHub, but we could create a dedicated repository to store those binaries there, and just download them instead of building each time. 🤔 I still wonder though why do you suggest creating a separate script? The existing one works well except for the |
I missed last status update, I thought status is still "stuck on openssl build". It's ok to use $(pwd) instead of auto-detection, don't add extra command-line argument. Also build-android script clones own copy of srt repo (build-android:97). Will it get updated code from pull request's branch? |
Indeed! We already have a working copy of Currently:
|
Done. Script will build working copy: sergeiignatov@423f024 |
Co-authored-by: Sergei Ignatov <sergeiignatov@users.noreply.github.com>
Thank you, @sergeiignatov ! I assume line 108 can also be removed now, right? git -C $BASE_DIR/srt clean -fd Currently it causes the following error: 2021-10-13T08:47:31.9152247Z Before git -C BASE_DIR/srt clean -fd
2021-10-13T08:47:31.9169783Z fatal: cannot change to '/home/runner/work/srt/srt/scripts/build-android/srt': No such file or directory |
No, git clean is still required to move between architectures. And it should ignore work already done inside scripts/build-android. |
Great, thank you @sergeiignatov ! |
Add Android build CI action with NDK R23.
TODO