nttld / setup-ndk

Setup your GitHub Actions workflow with a specific version of the Android NDK
MIT License
62 stars 24 forks source link

Error about missing file/directory when trying to use #508

Closed achou11 closed 1 year ago

achou11 commented 1 year ago

Entirely possible that there's something wrong that I'm doing (not very proficient with GH Actions 😅), but hoping to get some clues about how to address the issue I'm running into...

I'm getting this error when trying to run this action:

Error: ENOENT: no such file or directory, lstat '/opt/hostedtoolcache/ndk/r24/x64/*'

Here's the relevant configuration:

steps:
  - uses: actions/checkout@v4

  - name: Setup NDK
    uses: nttld/setup-ndk@v1
    id: setup_ndk
    with:
      ndk-version: r24 # https://github.com/android/ndk/wiki/Unsupported-Downloads#r24
      local-cache: true

Additional context:

achou11 commented 1 year ago

Removed the local-cache option and that seemed to fix it. Would love to get a better understanding of why if possible. I think using the local cache makes sense for my usage (correct me if I'm mistaken), so would be ideal to have it enabled

Otherwise, please feel free to close

raftario commented 1 year ago

My bad, accidentally broke local-cache with 1.4.0. Should be fixed now.