GitLab Pipeline Sample Code
The sample code is as follows:
stages:
- build
- affinity-analysis
generate-bc-file:
stage: affinity-analysis
tags:
- kunpeng_scanner # This is the tag used during gitlab-runner registration. Multiple tags may be selected.
script:
- echo '====== Generate BC files ======'
# Example: mkdir -p /home/test/bc_files
# Example: cd /home/test
# Example: devkit advisor bc-gen -c make -o /home/test/bc_files
- mkdir -p path for storing the BC files
- cd Path to the source code folder for which BC files are to be generated
- devkit advisor bc-gen -c Source code build command -o Path for storing the BC files
- You are advised to generate the BC files before the build process.
- /home/test/bc_files indicates the path for storing the generated BC files. Replace it with the actual path.
- /home/test indicates the path to the source code based on which the BC files are generated. Replace it with the actual path.
Parent topic: BC File Generation