GitLab流水线示例代码
示例代码如下:
stages: # List of stages for jobs, and their order of execution
- build
- test
- deploy
build-job: # This job runs in the build stage, which runs first.
stage: build
script:
- source "${HOME}"/.local/wrap-bin/devkit_NonInvasiveSwitching.sh
- cd /home/test/duild
- make
tags:
- kunpeng_c_builder_bisheng_compiler # 对应gitlab-runner注册时的标签,可选择多个
“/home/test/build”指项目文件路径,编译命令为make,请根据实际情况进行替换。
父主题: 毕昇编译器