GitLab Pipeline Sample Code
The sample code is as follows:
stages:
- build
- affinity-analysis
64-bit-running-mode-check:
stage: affinity-analysis
tags:
- kunpeng_scanner # This is the tag used during gitlab-runner registration. Multiple tags may be selected.
script:
- echo '====== 64-bit running mode check ======'
# Example: devkit advisor run-mode -i /opt/DevKit/testcase/affinity/precheck/test005 -r html
- devkit advisor run-mode -i path to the source code folder to be scanned -c source code build command -r html
- mv ./mode_check*.html ./64-bit-running-mode-check.html
artifacts:
paths:
- 64-bit-running-mode-check.html
name: mode-check
- You are advised to perform the 64-bit running mode check before the build process.
- /opt/DevKit/testcase/affinity/precheck/test005 indicates the path to the source code folder to be scanned. Replace it with the actual path.
Parent topic: 64-bit Running Mode Check