将gitLab

编程入门 行业动态 更新时间:2024-10-12 08:17:08
本文介绍了将gitLab-CI用于Qt项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想将gitLab-CI用于Qt项目,但我不知道该怎么做。我了解整个流水线过程都在CI服务器上进行,但是我如何设置所需的要求(如qt环境)?

I want to use gitLab-CI for a Qt-project, but i can't figure out, what I need to do so. I understand, that the whole pipeline process takes place on the CI-Server, but how do I setup the needed requirements like the qt-environment?

好吧,我明白了!您只需使用Runner,如果没有服务器,就可以使用VM。

Ok now I got it! You just use the Runner for it, if you do not have a Server, you can use a VM.

推荐答案

对于GitLab。 com

  • 赛跑者已经设置好了(共享赛跑者)。
  • 您需要使用Qt SDK Docker映像或自行安装:
    • 使用 image:< image-name> .gitlab-ci.yml
    • 使用 apt 或其他软件包管理器(不推荐)
    • For GitLab

      • The runners are already set up (shared runners).
      • You need to use a Qt SDK Docker image or install it yourself:
        • Use image: <image-name> for .gitlab-ci.yml
        • Use apt or some other package manager (not recommended)
          • 可以设置跑步者,也可以不设置跑步者,但是您不需要更改(除了使用更快的计算机和更大的内存等,以便进行必要的构建)。
          • 您需要使用Qt SDK Docker映像或自己安装它:
              将 image:< image-name> 用作 .gitlab-ci.yml
            • 使用 apt 或其他软件包管理器(不推荐)
            • The runners may or may not be set up, but you do not need to do any specific changes (other than using faster machines with bigger memory, etc for building in necessary).
            • You need to use a Qt SDK Docker image or install it yourself:
              • Use image: <image-name> for .gitlab-ci.yml
              • Use apt or some other package manager (not recommended)

              这是Josh Peak的评论:

              This is from Josh Peak's comment:

              可以回答我的问题。我将不得不使用QT SDK预先配置VM映像和/或Docker映像,以便其他开发团队可以利用。感谢您及时的回复。

              Ok that answers my question. I'm going to have to preconfigure a VM image and/or a Docker image with the QT SDK that the rest of my dev team can leverage. Thanks for the quick response.

              此答案来自ManuelP。的问题:

              This answer is from ManuelP.'s question:

              好吧,我明白了!您只需使用Runner即可,如果没有服务器,则可以使用VM。

              Ok now I got it! You just use the Runner for it, if you do not have a Server, you can use a VM.

更多推荐

将gitLab

本文发布于:2023-11-15 22:21:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1598466.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:gitLab

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!