From 2bfe0a2cfa988610f197266e21660910f3f56593 Mon Sep 17 00:00:00 2001 From: UjuiUjuMandan <125150101+UjuiUjuMandan@users.noreply.github.com> Date: Fri, 3 Jan 2025 08:10:45 +0000 Subject: [PATCH] fix ndk cache --- .github/workflows/build.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index be7cda80f..6135c8d29 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,6 +46,16 @@ jobs: with: go-version: '${{ env.GO_VERSION }}' + - name: Restore Android Symlinks + 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 + - name: Setup Android NDK uses: nttld/setup-ndk@v1 if: steps.cache-libhysteria2-check.outputs.cache-hit != 'true' @@ -104,16 +114,6 @@ jobs: link-to-sdk: true local-cache: true - - name: Restore Android Symlinks - 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 - - name: Prepare build dir run: | mkdir ${{ github.workspace }}/build