如何在 windows、linux 和 macOS 上 运行 ci?

How to run the ci on windows, linux and macos?

我正在尝试使用 pyinstaller 打包 Python 和 Qt 应用程序。但是,我还没有找到并行 运行 多个 运行 人的方法。

您基本上会复制作业定义并分配不同的 tags 来选择您想要的跑步者。以下是我如何在三个不同的跑步者上并行构建 Electron 应用程序:

.build:
  stage: build
  script:
    - npm install --progress=false
    - npm run electron:build

build-linux:
  extends: .build
  tags:
    - linux

build-mac:
  extends: .build
  tags:
    - mac

build-windows:
  extends: .build
  tags:
    - windows

此配置使用 hidden jobs and extends