Gitlab流水线编译代码示例
- 以配置文件参数优化(A-FOT)
stages: - build - test - deploy source-code-migration: stage: build tags: - kunpeng_builder # 对应gitlab-runner注册时的标签,可选择多个 script: - source "${HOME}"/.local/wrap-bin/devkit_pipeline.sh # 如果想要使用毕昇编译器的相关能力,请添加这条命令 # 其他平台运行编译命令为:cd /path/to/repository、make,请在此运行与其他平台一致的编译命令 - cd /path/to/repository - make - echo '====== GCC for openEulier ======' a-fot --config_file a-fot.ini'
- 以命令参数优化(A-FOT)
stages: - build - test - deploy source-code-migration: stage: build tags: - kunpeng_builder # 对应gitlab-runner注册时的标签,可选择多个 script: - echo '====== GCC for openEulier ======' a-fot --opt_mode AutoFDO --gcc_path /usr --run_script /root/run.sh --build_script /root/build.sh --build_mode Wrapper --work_path ./ --bin_file /tmp/test'
父主题: Gitlab流水线