Skip to content

Commit

Permalink
fix ndk cache
Browse files Browse the repository at this point in the history
  • Loading branch information
UjuiUjuMandan committed Jan 3, 2025
1 parent c37abda commit 2bfe0a2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2bfe0a2

Please sign in to comment.