Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nttld/setup-ndk
Setup your GitHub Actions workflow with a specific version of the Android NDK
https://github.com/nttld/setup-ndk
actions android android-ndk ndk
Last synced: 4 days ago
JSON representation
Setup your GitHub Actions workflow with a specific version of the Android NDK
- Host: GitHub
- URL: https://github.com/nttld/setup-ndk
- Owner: nttld
- License: mit
- Created: 2020-09-25T20:09:11.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T04:23:29.000Z (4 months ago)
- Last Synced: 2024-12-16T04:07:52.581Z (10 days ago)
- Topics: actions, android, android-ndk, ndk
- Language: TypeScript
- Homepage:
- Size: 3.71 MB
- Stars: 66
- Watchers: 4
- Forks: 24
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# setup-ndk
This action sets up an Android NDK environment by downloading and caching a version of the NDK and optionally adding it to the PATH and linking it to the Android SDK.
## Usage
See [action.yml](action.yml)
### Basic
```yml
steps:
- uses: actions/checkout@v3
- uses: nttld/setup-ndk@v1
with:
ndk-version: r26d
- run: ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk NDK_APPLICATION_MK=./Application.mk
```### Using the installation path
```yml
steps:
- uses: actions/checkout@v3
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r21e
add-to-path: false
- run: ./build.sh
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
```### Linking to the SDK
```yml
steps:
- uses: actions/checkout@v3
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r26d
link-to-sdk: true
- run: ./gradlew build
```### Caching locally for the workflow
```yml
steps:
- uses: actions/checkout@v3
- uses: nttld/setup-ndk@v1
with:
ndk-version: r21e
local-cache: true
```