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

Support arm64 machine #663

Closed
isac322 opened this issue Apr 20, 2023 · 5 comments · Fixed by #664
Closed

Support arm64 machine #663

isac322 opened this issue Apr 20, 2023 · 5 comments · Fixed by #664
Assignees
Labels
need-more-info Need additional information to debug/reproduce

Comments

@isac322
Copy link

isac322 commented Apr 20, 2023

Describe the bug

The actions do not work on arm64 machine.

/runner/_work/redirector/redirector/cc-reporter: 1: �ELF����: not found
/runner/_work/redirector/redirector/cc-reporter: 1: ��: not found
/runner/_work/redirector/redirector/cc-reporter: 1: ��: not found
/runner/_work/redirector/redirector/cc-reporter: 1: �������c�������c�����c��$: not found
/runner/_work/redirector/redirector/cc-reporter: 1: cannot open ���: No such file
/runner/_work/redirector/redirector/cc-reporter: 1: ����P�����������Q�k�: not found
/runner/_work/redirector/redirector/cc-reporter: 2: Syntax error: word unexpected (expecting ")")

Version of codeclimate-action you're using
v3.2.0

@isac322 isac322 added the bug Something isn't working label Apr 20, 2023
@paambaati paambaati added need-more-info Need additional information to debug/reproduce and removed bug Something isn't working labels Apr 20, 2023
@paambaati
Copy link
Owner

@isac322 Can you show me how this is run? AFAICT, Action runners do not run on ARM (see actions/runner-images#5631).

@isac322
Copy link
Author

isac322 commented Apr 20, 2023

@paambaati We use https://github.com/actions/actions-runner-controller. I can not share how workflow runs because it is a private repository.

@paambaati
Copy link
Owner

paambaati commented Apr 20, 2023

@isac322 Looking at the linked repo, I’m assuming your runners are self-hosted. Can you show me how Node.js is installed on them?

I ask because detecting the host platform architecture is not straightforward, as Node os.arch() only exposes the architecture Node itself was compiled for, and not of the underlying host.

@isac322
Copy link
Author

isac322 commented Apr 20, 2023

@paambaati

- name: debug
  run: |
    /runnertmp/externalstmp/node12/bin/node --version
    /runnertmp/externalstmp/node12/bin/node -e 'console.log(require("os").arch())'
    /runnertmp/externalstmp/node16/bin/node --version
    /runnertmp/externalstmp/node16/bin/node -e 'console.log(require("os").arch())'

image

You can reproduce using ghcr.io/actions-runner-controller/actions-runner-controller/actions-runner on local. Please post any code if you need to run on arm64.

@paambaati
Copy link
Owner

This should now be available in v4.0.0 of the workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-more-info Need additional information to debug/reproduce
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants