From: Tobias Brunner Date: Thu, 9 Jan 2025 13:35:53 +0000 (+0100) Subject: github: Don't install the NDK as root X-Git-Tag: android-2.5.3~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f912345c13cd7ab0187adbdd1a4895a2b7224dc;p=thirdparty%2Fstrongswan.git 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. --- diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index eb2bc435c0..0b84743de8 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: