Skip to content
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

Remove Windows NDK symlink and run apk check + build in separate steps #118

Merged
merged 2 commits into from
Jan 28, 2021

Conversation

MarijnS95
Copy link
Member

An obscure one-line apk build failure got shadowed by a much larger deprecation warning shown by cargo check right above, deemed irrelevant. Separating these steps will make it clear when the issue is code-related (ndk, ndk-glue) or build-related (ndk-build, cargo-apk, cargo-subcommand).


GH actions virtual environments have finally been fixed to provide a space-less path to the SDK and NDK by default 🎉. The workaround - introduced in #92 - can finally be removed again!

MarijnS95 and others added 2 commits January 27, 2021 10:58
An obscure one-line `apk build` failure got shadowed by a much larger
deprecation warning shown by `cargo check` right above, deemed
irrelevant. Separating these steps will make it clear when the issue is
code-related (ndk, ndk-glue) or build-related (ndk-build, cargo-apk,
cargo-subcommand).
In [1] this hack was introduced because GH Actions virtual-environments
installed the SDK in `Program Files` which includes a space, but this is
not supported by the NDK. Now that the issue has been addressed [2] and
the images deployed this workaround can be removed again.

[1]: rust-mobile#92
[2]: actions/runner-images#2343
@MarijnS95
Copy link
Member Author

  = note: 'C:\Program' is not recognized as an internal or external command,
          operable program or batch file.

Ha, very funny. Build-tested this before to make sure the images have been deployed, turns out mine uses Version: 20210121.0 (January 21st) but android-ndk-rs is somehow stuck on 20201210.0 (December 10th).

@MarijnS95
Copy link
Member Author

Hey, the CI magically re-ran 35 mins ago!

Just ran into the inverse error here: https://github.com/MarijnS95/android-ndk-rs/runs/1786432472?check_suite_focus=true:

New-Item: D:\a\_temp\36b3b79e-1665-493e-8ec0-69903de7a78a.ps1:4
Line |
   4 |  New-Item -Path $sdk_root -ItemType SymbolicLink -Value $oldAndroidPat|  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot create symbolic link because the path C:\Android already exists.

Time to merge!

@MarijnS95 MarijnS95 merged commit 63be357 into rust-mobile:master Jan 28, 2021
@MarijnS95 MarijnS95 deleted the ci-check-separate-from-build branch January 28, 2021 18:46
@msiglreith
Copy link
Contributor

Hey, the CI magically re-ran 35 mins ago!

I kicked it off again 😄

@MarijnS95
Copy link
Member Author

MarijnS95 commented Jan 28, 2021

Had a hunch, thanks!

The issue was anyway reopened with the "awaiting deployment" flag: actions/runner-images#1122 (comment) but it looks like it reached us already :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants