# SDL: ci: set ANDROID\_NDK\_HOME environment variable

**URL:** <https://discourse.libsdl.org/t/sdl-ci-set-android-ndk-home-environment-variable/69415>\
**Category:** SDL Commits\
**Created:** [September 28, 2026, 12:26am UTC](https://discourse.libsdl.org/t/sdl-ci-set-android-ndk-home-environment-variable/69415 "2026-09-28T00:26:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [September 28, 2026, 12:26am UTC](https://discourse.libsdl.org/t/sdl-ci-set-android-ndk-home-environment-variable/69415/1 "2026-09-28T00:26:29Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/7041730f074d8e2bfa9afdae45dd966874b89e11>

```diff
From 7041730f074d8e2bfa9afdae45dd966874b89e11 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sun, 27 Sep 2026 17:58:17 +0200
Subject: [PATCH] ci: set ANDROID_NDK_HOME environment variable

---
 .github/workflows/generic.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.github/workflows/generic.yml b/.github/workflows/generic.yml
index f9eb4db2a84fc..f3917e343f621 100644
--- a/.github/workflows/generic.yml
+++ b/.github/workflows/generic.yml
@@ -54,6 +54,12 @@ jobs:
         with:
           local-cache: false
           ndk-version: r28c
+ - name: 'Configure Android NDK variables'
+ if: ${{ matrix.platform.android-ndk }}
+ shell: sh
+ run: |
+ # We cannot use GitHub expressions in the controller job
+ echo "ANDROID_NDK_HOME=${{ steps.setup-ndk.outputs.ndk-path }}" >>$GITHUB_ENV
       - uses: ilammy/msvc-dev-cmd@v1
         if: ${{ matrix.platform.platform == 'msvc' }}
         with:

```
