Closed dzmitry-lahoda closed 12 months ago
so it works only in docker, but not when CI uses host nix and not isolated (isolated by nix only)
I'm seeing this same error on the new macOS ARM (M1) runners (macos-latest-xlarge
). Could it be some issue related to the ARM architecture? I see your log also shows you were using an ARM machine (Machine name: 'Ubuntu-2204-jammy-arm64-base'
)
After a bit more investigation (and enabling debug logging) this is what I found out:
##[debug]Fetching the Magic Nix Cache from https://install.determinate.systems/magic-nix-cache/branch/main/ARM64-macOS
got an exception:
HTTPError: Response code 404 (Not Found)
Error: Response code 404 (Not Found)
node:internal/process/esm_loader:97
internalBinding('errors').triggerUncaughtException(
^
From what I can tell, only x86_64 Linux and macOS have binaries available: https://github.com/DeterminateSystems/magic-nix-cache/blob/main/.github/workflows/build.yaml
Can we get ARM64 macOS and Linux supported? M1 Macs are now available on GitHub Actions officially: https://github.blog/2023-10-02-introducing-the-new-apple-silicon-powered-m1-macos-larger-runner-for-github-actions/
Some human workds: I though to improve performance of our CI ARM dedicated machine with Nix 2.15+ version running. Added cache action as per docs and it got error. I was not able to found root cause nor additional config.
https://github.com/ComposableFi/composable/actions/runs/5799130289/job/15718439792?pr=4039 https://github.com/ComposableFi/composable/pull/4039/commits/db13464745e43dd82c1c1eb23602a1f5ecf5ccdc