How do I debug GitHub Actions matrix builds failing only on arm64? #191077
-
🏷️ Discussion TypeQuestion 💬 Feature/Topic AreaCode Search and Navigation BodyMy workflow runs fine on ubuntu-latest (amd64) but fails on ubuntu-latest with runner: self-hosted arm64 for a Node.js app. Getting 'node: not found' despite setup-node step. Matrix config issue or runner setup? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Your self-hosted arm64 runner likely lacks Node.js ARM64 binaries in PATH, or setup-node downloads a corrupted/incompatible version (common ELF errors on arm64). Add architecture: 'arm64' explicitly to setup-node@v4 step, and debug with run: which node; node --version; ls -la $(which node) right after setup. Quick Fixes: Runner logs + env: NODE_DEBUG: 'all' in step will pinpoint PATH/PATH issues. |
Beta Was this translation helpful? Give feedback.
Your self-hosted arm64 runner likely lacks Node.js ARM64 binaries in PATH, or setup-node downloads a corrupted/incompatible version (common ELF errors on arm64). Add architecture: 'arm64' explicitly to setup-node@v4 step, and debug with run: which node; node --version; ls -la $(which node) right after setup.
Quick Fixes: