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

ci: manually point ANDROID_NDK_ROOT to latest supplied version #2397

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

MarijnS95
Copy link
Member

@MarijnS95 MarijnS95 commented Jul 26, 2022

It seems the symlink to ndk-bundle and this environment variable pointing to it have been removed to prevent the sdkmanager from failing, when finding the SDK setup to be in an "indeterminate" state. It is now up to the users themselves to install an NDK through that tool or point the right variables to a preinstalled "latest" NDK.

actions/runner-images#2689
actions/runner-images#5879
actions/runner-images#5926


Draft because I'm still waiting for confirmation that the removal of this env var is intended, instead of just pointing it to the latest LTS release without going through a symlink to match previous behaviour.

@kchibisov kchibisov mentioned this pull request Jul 26, 2022
4 tasks
@kchibisov
Copy link
Member

In general I'm fine with such solution tbqh, could change it whenever we feel like if upstream changes it again.

It seems the symlink to `ndk-bundle` and this environment variable
pointing to it have been removed to prevent the sdkmanager from failing,
when finding the SDK setup to be in an "indeterminate" state.  It is now
up to the users themselves to install an NDK through that tool or point
the right variables to a preinstalled "latest" NDK.

actions/runner-images#2689
actions/runner-images#5926
@MarijnS95 MarijnS95 marked this pull request as ready for review July 26, 2022 13:23
@MarijnS95 MarijnS95 force-pushed the android-ndk-env-var branch from b3de03f to 93373a3 Compare July 26, 2022 13:23
@MarijnS95
Copy link
Member Author

MarijnS95 commented Jul 26, 2022

Let's get this in then to unblock everyone as the CI failures are super annoying. We can remove it again when there's another sensible default).

Note that we're targeting latest now instead of LTS, which is going to be NDK r25 (not sure if GH Actions venv has that yet...) until at least 2023: https://github.com/android/ndk/wiki#release-schedule. It doesn't matter anyway, we just need the compiler to build and are almost completely version-agnostic.

@MarijnS95 MarijnS95 requested a review from kchibisov July 26, 2022 13:25
@kchibisov
Copy link
Member

Couldn't that be added inside env section?

@MarijnS95
Copy link
Member Author

@kchibisov I tried beforehand, but ${{ env.ANDROID_NDK_LATEST_HOME }} remained inaccessible/unset outside of steps:. If you have any suggestions there, let me know!

Copy link
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine. I'm not into github actions anyway.

@kchibisov kchibisov merged commit 4895a29 into rust-windowing:master Jul 26, 2022
@MarijnS95 MarijnS95 deleted the android-ndk-env-var branch July 27, 2022 11:48
@MarijnS95
Copy link
Member Author

For reference, looks like we can back out of this soon: actions/runner-images#5879 (comment)

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

Successfully merging this pull request may close these issues.

2 participants