nttld / setup-ndk

Setup your GitHub Actions workflow with a specific version of the Android NDK
MIT License
62 stars 24 forks source link

Using setup-ndk from another job #469

Closed n-eq closed 1 year ago

n-eq commented 1 year ago

Hello, I am using setup-ndk action to define Android environment variables (mainly NDK_HOME, ANDROID_SDK), before building some source files for different targets, see the screenshot below.

image

However, although the installation seems OK (the environment is correctly setup) during the Setup Android NDK step, it is lost in Build Android: the installed NDK does no more exist on the runner. Is this behavior normal? If so can you think of any solution/workaround? Thank you.

raftario commented 1 year ago

That's the expected behaviour of GitHub actions, each job gets its own clean environment. I'd recommend checking out the GitHub's documentation as the behaviour isn't really related to this project.