-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Support multiarch in webview bootstrap #2596
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
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
This is essentially exactly the same as what the sdl2 bootstrap is
doing.