Skip to content

Supporting runners on 64bit RISC-V  #2157

Closed

Description

@advancedwebdeveloper

Two possible scenarios:

  1. Running on a Qemu's guest (Linux)
  2. Running on a board
    .

Activity

  1. fhammerl commented on Oct 5, 2022

    @fhammerl
    Contributor

    Hello @advancedwebdeveloper, thank you for your interest in the extension of Actions Runner.

    We're unlikely to extend support to more architectures at this time.

    In order for us to be able to support the runner on a new architecture (assuming a Linux OS), two of our dependencies, node v16 and dotnet core must be also supported there. From a cursory search, running them is not trivial on RISC-V.

    Node: nodejs/build#2876
    Dotnet: dotnet/runtime#36748

    I'm closing the issue with the above points in mind.

    If you can find an experimental path that works for you, I'd be happy to review a docs PR detailing the process.

  2. ChristopherHX commented on Oct 5, 2022

    @ChristopherHX
    Contributor

    An unofficial self-hosted actions runner powered by golang does target linux/risc-v https://github.com/ChristopherHX/github-act-runner, no idea if it really works on risc-v64.

    I guess the node16 problem would also apply, without node you can only use composite actions and run steps. actions/checkout depends on node16, so you might need to run git clone manually.

    I'm not shure if that path should be documented here, because doesn't use actions/runner at all. It is the same runner which runs on freebsd.

  3. iggy commented on Jun 21, 2023

    @iggy

    It looks like node now supports riscv64
    as well as dotnet/runtime

  4. KitsuneAlex commented on Aug 20, 2023

    @KitsuneAlex

    An unofficial self-hosted actions runner powered by golang does target linux/risc-v https://github.com/ChristopherHX/github-act-runner, no idea if it really works on risc-v64.

    I guess the node16 problem would also apply, without node you can only use composite actions and run steps. actions/checkout depends on node16, so you might need to run git clone manually.

    I'm not shure if that path should be documented here, because doesn't use actions/runner at all. It is the same runner which runs on freebsd.

    Sadly it seems pretty broken right now, gave it a try on my StarFive Vision 2 :/

  5. KitsuneAlex commented on Aug 20, 2023

    @KitsuneAlex

    I'm gonna try to give this a shot.
    Gonna build dotnet from source for riscv64 and then try to make the runner work. I already got latest Node on there.
    Maybe i can get somewhere.

  6. fengyuentau commented on Nov 14, 2023

    @fengyuentau

    Hello, is there any progress on running github actions on different platforms? I would like to see it running on RISC-V, loongson and so on.

  7. dkurt commented on Dec 29, 2023

    @dkurt

    I tried to workaround some checks on this branch https://github.com/dkurt/runner/tree/dkurt/riscv64_runner and got stuck on missing RISC-V RID of dotnet - they does not ship this with x64 package. Node.js ignored for now as @ChristopherHX suggested in #2157 (comment).

    Were able to build .NET SDK but there are some errors while compile runner: dkurt/dotnet_riscv#5

  8. dkurt commented on Jan 18, 2024

    @dkurt

    Oh, seems like I were finally lucky to run a simple test on my RISC-V board!!! https://github.com/dkurt/github_actions_riscv/actions/runs/7557778218/job/20606841931

    2024-01-18T08:53:33.5046506Z Requested labels: self-hosted
    2024-01-18T08:53:33.5046809Z Job defined at: dkurt/github_actions_riscv/.github/workflows/test.yaml@refs/pull/1/merge
    2024-01-18T08:53:33.5046917Z Waiting for a runner to pick up this job...
    2024-01-18T08:54:28.0279155Z Job is about to start running on the runner: sipeed (repository)
    2024-01-18T08:55:57.7563620Z Current runner version: '2.311.0'
    2024-01-18T08:55:57.9667897Z Runner name: 'sipeed'
    2024-01-18T08:55:58.0223617Z Runner group name: 'Default'
    2024-01-18T08:55:58.0874527Z Machine name: 'ubuntu'
    2024-01-18T08:55:58.2820098Z ##[group]GITHUB_TOKEN Permissions
    2024-01-18T08:55:58.3412606Z Contents: read
    2024-01-18T08:55:58.3977585Z Metadata: read
    2024-01-18T08:55:58.4511344Z Packages: read
    2024-01-18T08:55:58.5055148Z ##[endgroup]
    2024-01-18T08:55:58.5698740Z Secret source: Actions
    2024-01-18T08:55:58.6255337Z Prepare workflow directory
    2024-01-18T08:56:03.4799589Z Prepare all required actions
    2024-01-18T08:56:04.4288301Z Complete job name: run
    2024-01-18T08:56:15.2594320Z ##[group]Run uname -m
    2024-01-18T08:56:15.3192643Z �[36;1muname -m�[0m
    2024-01-18T08:56:15.3863763Z �[36;1mcat /proc/cpuinfo�[0m
    2024-01-18T08:56:15.7824469Z shell: /usr/bin/bash -e {0}
    2024-01-18T08:56:15.8425501Z ##[endgroup]
    2024-01-18T08:56:19.2917948Z riscv64
    2024-01-18T08:56:19.3623249Z processor	: 0
    2024-01-18T08:56:19.4206628Z hart		: 0
    2024-01-18T08:56:19.4690253Z isa		: rv64imafdc_zicntr_zicsr_zifencei_zihpm
    2024-01-18T08:56:19.5226080Z mmu		: sv39
    2024-01-18T08:56:19.5694325Z uarch		: thead,c906
    2024-01-18T08:56:19.6173666Z mvendorid	: 0x5b7
    2024-01-18T08:56:19.6992719Z marchid		: 0x0
    2024-01-18T08:56:19.7478966Z mimpid		: 0x0
    2024-01-18T08:56:19.7768192Z 
    2024-01-18T08:56:21.9316744Z Cleaning up orphan processes
    

    Please give me some time to summarize and publish a guide.

    Update: done: https://github.com/dkurt/github_actions_riscv

  9. EwoutH commented on Mar 13, 2024

    @EwoutH

    @fhammerl since @dkurt has a working proof of concept of running GitHub Actions on RISC-V, would you consider reopening this issue? Even if it's isn't planned in the near future, it would be useful to be able to discuss developments here.

  10. alitariq4589 commented on Feb 18, 2026

    @alitariq4589

    I have released GitHub Runner for RISC-V and have been maintaining it with the latest version of the official repository under the RISE CI enablement program. I will be more than happy if people use it and let me know how it works.

    I would be happy to add a PR with changes. But I don't think there will be many changes needed once Microsoft releases the official binaries of .NET for RISC-V

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions