From cb613beea6dfa41ccdc35f25f2e7868b8851e4ee Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sat, 3 Feb 2024 08:11:02 -0300 Subject: [PATCH] fix(ci): test-android NDK error (#8738) * fix(ci): test-android NDK error * only on unix --- .github/workflows/test-android.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test-android.yml b/.github/workflows/test-android.yml index 9f3ad098c..e6af3d541 100644 --- a/.github/workflows/test-android.yml +++ b/.github/workflows/test-android.yml @@ -64,6 +64,18 @@ jobs: ndk-version: r25b local-cache: true + # TODO check after https://github.com/nttld/setup-ndk/issues/518 is fixed + - name: Restore Android Symlinks + if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'macos-latest' + run: | + directory="${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin" + find "$directory" -type l | while read link; do + current_target=$(readlink "$link") + new_target="$directory/$(basename "$current_target")" + ln -sf "$new_target" "$link" + echo "Changed $(basename "$link") from $current_target to $new_target" + done + - uses: Swatinem/rust-cache@v2 with: workspaces: |