-
Notifications
You must be signed in to change notification settings - Fork 904
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
Use xbuild instead of cargo apk in the CI #3086
Conversation
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.
Huh, I didn't know it was deprecated. Do you have a reference on why?
Yes, |
CI is taking a while to be queued. What's that about? |
cbb4982
to
98b7e09
Compare
The CI error is #3093 |
5c4873c
to
482bd12
Compare
@MarijnS95 Any chance you can review this in the near future? |
xbuild-target/src/main.rs
Outdated
fn main() { | ||
winit::event_loop::EventLoop::new() | ||
.unwrap() | ||
.run(|_, _| todo!()) |
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.
A real implementation is probably provided by the example that was being compiled before? I'd rather test that, including the part that forwards android_activity::AndroidApp
into winit
.
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.
I added an actual Android winit app, but it looks like there is a linker error that doesn't occur on my machine.
@notgull sure, done. I've been out of the country for quite some time, only got to you |
I'm not getting the linker error on my machine |
dd4c73b
to
fe95cce
Compare
fe95cce
to
8a212a1
Compare
.github/workflows/ci.yml
Outdated
- name: Build and package crate for Android | ||
if: contains(matrix.platform.target, 'android') | ||
# TODO: Figure out why this build fails on Github Actions | ||
run: x build -p ios-xbuild-target --platform android --arch arm64 |
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.
How does it work? Does it simply abort now or it builds, but not with android
target?
android-xbuild-target/README.md
Outdated
# android-xbuild-target | ||
|
||
This is a crate that can be built via `x build` in order to simplify CI testing. |
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.
Maybe we should create a common xbuild
dir and put these 2 crates there with common docs.
In addition to cargo apk being deprecated, xbuild also has support for ios. Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
8a212a1
to
d365744
Compare
@@ -0,0 +1,9 @@ | |||
[package] | |||
name = "ios-xbuild-target" |
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.
Nit: given the directory structure I'd name these xbuild-ios-target
. After all, xbuild
is targeting an architecture, the architecture isn't targeting xbuild
.
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, just unfortunate that we cannot have xbuild
target examples yet :/
Closing for now as this is blocked on rust-mobile/xbuild#158 |
In addition to cargo apk being deprecated, xbuild also has support for ios.
CHANGELOG.md
if knowledge of this change could be valuable to users