选择GitHub作业运行程序的架构。

huangapple go评论55阅读模式
英文:

Choose architecture for a GitHub job runner

问题

我正在阅读此文档,了解如何在GitHub工作流程中选择作业的运行器。

但是,是否有一种方法来选择架构,例如在策略矩阵中?我的工作流程构建我的项目然后运行测试。我希望它能在linux/i386linux/amd64上运行。

英文:

I was reading this documentation on how to select the runner for a job in a GitHub workflow.

However, is there a way to select the architecture as well, such as in a strategy matrix? My workflow builds my project and then runs tests. I'd like it to run on linux/i386 as well as linux/amd64.

答案1

得分: 1

截止目前,所有GitHub 托管的运行器仅支持x86_64架构。

请参阅支持的运行器和硬件资源

即使对于自托管运行器,也仅支持以下架构

  • x64 - Linux、macOS、Windows。
  • ARM64 - Linux、macOS、Windows(目前处于测试版)。
  • ARM32 - Linux。

x86 二进制文件应该在x64 运行器上正常运行。但是,您也可以使用Docker镜像进行测试。

英文:

As of now, all the GitHub-hosted runners only support x86_64 architecture.

See Supported runners and hardware resources.

Even for self-hosted runners, only these architectures are supported:

  • x64 - Linux, macOS, Windows.
  • ARM64 - Linux, macOS, Windows (currently in beta).
  • ARM32 - Linux.

x86 binaries should run just fine on x64 runners. However, you may use Docker images for your tests.

huangapple
  • 本文由 发表于 2023年5月14日 00:58:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/76243940.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定