From 6f912345c13cd7ab0187adbdd1a4895a2b7224dc Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 9 Jan 2025 14:35:53 +0100 Subject: [PATCH] github: Don't install the NDK as root On the Ubuntu 24.04 image, this causes the /home/runner/.config/.android directory to be owned by root, which lets the build fail later. --- .github/workflows/android.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index eb2bc435c..0b84743de 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -36,7 +36,7 @@ jobs: run: | NDK_VERSION=$(grep "ndkVersion" src/frontends/android/app/build.gradle | sed -e 's/.*"\(.*\)"/\1/') echo Using NDK ${NDK_VERSION} - yes | sudo ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "ndk;${NDK_VERSION}" + yes | ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "ndk;${NDK_VERSION}" echo "ANDROID_NDK_ROOT=${ANDROID_HOME}/ndk/${NDK_VERSION}" >> "$GITHUB_OUTPUT" - uses: actions/cache@v4 with: