]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
github: Don't install the NDK as root
authorTobias Brunner <tobias@strongswan.org>
Thu, 9 Jan 2025 13:35:53 +0000 (14:35 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 10 Jan 2025 15:53:37 +0000 (16:53 +0100)
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

index eb2bc435c0dd6a70c22aa4bf8cee6ebf43c91829..0b84743de8a5d17ae46713f5c2643ce2ba5a580d 100644 (file)
@@ -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: