Support multiarch in webview bootstrap#2596
Conversation
|
We've been using this to run APKs and distribute AABs with our webview based app for a couple weeks now and it seems to work fine. Are there any tests for this code? I couldn't tell. |
misl6
left a comment
There was a problem hiding this comment.
Nice! I did not test it yet, but the code looks good.
Regarding the tests:
IMHO the best test that we can add ATM, is to extend the ubuntu_build_apk, macos_build_apk, ubuntu_build_aab, macos_build_aab jobs to include the webview bootstrap. That allows us to know if the apk or aab artifact is correctly built for all the boostraps, and even test the produced artifacts on a real device without doing the build manually.
We can still merge the PR and address these tests later, otherwise, feel free to improve our test suite and even ping me on our Discord #dev channel to discuss about it :)
I've been playing with |
AndreMiras
left a comment
There was a problem hiding this comment.
LGTM, same thing, code looks good, but I haven't tested it
c87cfcb to
5e74313
Compare
|
I think this is working now to build the testapp with both the sdl2 and webview bootstraps and save them as artifacts. When I run the webview APK it seems fine. However, the unittests fail: I don't understand that since the app is already loading the |
The issue seems to be tracked here: #2533, so it's definitely something that appeared before your changes. |
misl6
left a comment
There was a problem hiding this comment.
LGTM, nice!
Left a minor comment, feel free to address it or not :)
2339d95 to
831e275
Compare
This is essentially exactly the same as what the sdl2 bootstrap is doing.
831e275 to
598cc79
Compare
|
I think this is working as suggested. I actually think this will increase build time since each runner is going to have to rebuild the docker image and the entire p4a distribution. |
misl6
left a comment
There was a problem hiding this comment.
Nice! Not your fault, but we need to update the matrix in order to have a run on macos-latest, left a couple of suggestions.
Regarding the docker image build time: Doing some caching will save us a lot of CI time, and is certainly something we should improve in the future 😄
This should help exercise the webview bootstrap in CI and allow testing a webview app using the built artifacts.
af14e87 to
e37311d
Compare
This is essentially exactly the same as what the sdl2 bootstrap is
doing.