2026-02-11 03:25:12 +00:00
2026-02-10 22:20:06 -05:00
2024-05-07 23:39:34 -04:00
2026-02-10 22:20:06 -05:00
2026-02-10 22:20:06 -05:00
2023-08-26 12:54:09 -07:00
2023-08-26 12:54:09 -07:00
2023-08-26 12:54:09 -07:00
2026-02-10 22:12:50 -05:00
2026-02-10 22:12:50 -05:00
2020-09-25 16:37:18 -04:00
2026-02-11 03:25:12 +00:00
2026-02-11 03:25:12 +00:00
2026-02-10 22:20:06 -05:00
2026-02-10 22:12:50 -05:00

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

Basic

steps:
  - uses: actions/checkout@v3
  - uses: nttld/setup-ndk@v1
    with:
      ndk-version: r27d
  - run: ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk NDK_APPLICATION_MK=./Application.mk

Using the installation path

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

steps:
  - uses: actions/checkout@v3
  - uses: nttld/setup-ndk@v1
    id: setup-ndk
    with:
      ndk-version: r27d
      link-to-sdk: true
  - run: ./gradlew build

Caching locally for the workflow

steps:
  - uses: actions/checkout@v3
  - uses: nttld/setup-ndk@v1
    with:
      ndk-version: r21e
      local-cache: true
S
Description
No description provided
Readme MIT
6.2 MiB
Languages
TypeScript 88.7%
JavaScript 11.3%