Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local-cache not work because of broken symlink #547

Open
fumiama opened this issue Apr 16, 2024 · 2 comments
Open

local-cache not work because of broken symlink #547

fumiama opened this issue Apr 16, 2024 · 2 comments

Comments

@fumiama
Copy link

fumiama commented Apr 16, 2024

My YAML

name: test
on: [ push, pull_request ]

jobs:
  test_ubuntu:
    name: Run Make Test on Ubuntu 🧪
    runs-on: ubuntu-latest
    steps:

      - name: Checkout Code
        uses: actions/checkout@v4

      - name: Setup Build Tools
        run: |
          sudo apt-get update
          sudo apt-get install -y gcc make

      - name: Setup NDK
        uses: nttld/setup-ndk@v1
        id: setup-ndk
        with:
          ndk-version: r26d
          local-cache: true

      - name: Setup Go Environment
        uses: actions/setup-go@master

      - name: Test Build
        env:
          NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
          BUILD_MACHINE: linux
        run: |
          echo NDK path is $NDK_HOME
          ls -hl $NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
          ls -hl /opt/hostedtoolcache
          $NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android23-clang --version
          make -e

The output

  • It is clear that the cache restored successfully.

    ndk

  • But the symlink to /opt/hostedtoolcache is broken.

    build

@raftario
Copy link
Member

raftario commented May 8, 2024

Might be related to #518

@fumiama
Copy link
Author

fumiama commented May 8, 2024

Might be related to #518

So I have to drop local-cache option in current usage 😂.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants