GitHub Actions Runner

GitHub社区信息

GitHub Actions Runner来自GitHub官方的开源项目 https://github.com/actions/runner 。 关于Runner的具体使用可参考GitHub官方说明文档 https://docs.github.com/zh/actions

Runner在LoongArch上的适配

LoongArch相关适配代码可参考PR: https://github.com/actions/runner/pull/2778

您可以直接下载使用我们构建好的actions-runner二进制压缩包。也可以在社区github actions runner源码仓库的基础上, 参考上述PR,添加对LoongArch架构的支持, 即可构建出LoongArch版的二进制版本。

1. Runner 二进制包下载

软件名称 发布时间 架构 软件版本 下载链接
GitHub Actions Runner 2024/9/14 loongarch64 v2.319.1 点击下载 (md5)

2. Runner 编译制作方法

1. 根据 src/dev.sh 中的DOTNETSDK_VERSION 和 DOTNET8SDK_VERSION 配置信息,下载LoongArch版.NET SDK 6.0 和 8.0 对应版本的压缩包,部署到actions-runner源码的_dotnetsdk目录下。

2. 根据需要在文件 src/Misc/externals.sh 中配置linux-loongarch64 对应的nodejs链接,编译时即可自动从 https://www.loongnix.cn/zh/api/nodejs 获取LoongArch架构的Nodejs版本的链接。

3. 添加其他适配LoongArch架构的代码,参考PR: https://github.com/actions/runner/pull/2778

4. 编译命令。 依次执行如下命令:

    # 进入到 src 目录
    cd src
    ./dev.sh build
    ./dev.sh layout
    ./dev.sh package
    # 生成文件位于:./_package/