英文:
Choose architecture for a GitHub job runner
问题
我正在阅读此文档,了解如何在GitHub工作流程中选择作业的运行器。
但是,是否有一种方法来选择架构,例如在策略矩阵中?我的工作流程构建我的项目然后运行测试。我希望它能在linux/i386
和linux/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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论