【发布时间】:2020-07-08 06:39:38
【问题描述】:
我是 GitHub Actions 的新手,我正在尝试建立一个构建矩阵,在不同的平台上安装不同的系统要求。从https://github.com/r-lib/actions/blob/master/examples/check-standard.yaml 的示例中,我知道了如何编写仅在 Windows 上运行的步骤:
- name: step name
if: runner.os == 'Windows'
或 Linux
- name: Install system dependencies
if: runner.os == 'Linux'
但如果我尝试if: runner.os == 'Mac',我的步骤在 Mac OS 上会被跳过。所以我的问题是
- 我在 Mac OS 中使用什么
runner.os名称,以及 - 在哪里可以参考可能的
runner.os名称列表?
【问题讨论】:
标签: github-actions