From 8bfb8e891a1f84d94d2b05750e781f0207c6ed4a Mon Sep 17 00:00:00 2001 From: ErebusZ Date: Tue, 27 Aug 2024 15:30:34 +0100 Subject: [PATCH] Fix ndk not installing on workflows --- .github/workflows/connectedAndroidTest.yml | 7 ++++--- .github/workflows/release.yml | 8 +++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/connectedAndroidTest.yml b/.github/workflows/connectedAndroidTest.yml index 4383322..a30e49b 100644 --- a/.github/workflows/connectedAndroidTest.yml +++ b/.github/workflows/connectedAndroidTest.yml @@ -15,9 +15,10 @@ jobs: sudo chmod -R 777 /usr/local/lib/android/sdk/ndk sudo chown -R $USER:$USER /usr/local/lib/android/sdk/ndk - - name: Install NDK - if: steps.ndk-cache.outputs.cache-hit != 'true' - run: echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;25.1.8937393" + - name: install NDK + uses: nttld/setup-ndk@v1 + with: + ndk-version: r25b - uses: actions/setup-java@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28b2a8d..437272d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,9 +16,10 @@ jobs: sudo chmod -R 777 /usr/local/lib/android/sdk/ndk sudo chown -R $USER:$USER /usr/local/lib/android/sdk/ndk - - name: Install NDK - if: steps.ndk-cache.outputs.cache-hit != 'true' - run: echo "y" | sudo /usr/local/lib/android/sdk/tools/bin/sdkmanager --install "ndk;25.1.8937393" + - name: install NDK + uses: nttld/setup-ndk@v1 + with: + ndk-version: r25b - uses: actions/setup-java@v3 with: @@ -51,6 +52,7 @@ jobs: with: files: | ./ostorlab_insecure_app.apk + - name: Launch Ostorlab Full Scan with just Login Credentials uses: Ostorlab/ostorlab_actions@v1.1.1 with: