GitLab Pipeline Sample Code
The sample code is as follows:
stages:
- build
- affinity-analysis
addr-alignment-check:
stage: affinity-analysis
tags:
- kunpeng_scanner # This is the tag used during gitlab-runner registration. Multiple tags may be selected.
script:
- echo '====== Byte alignment check ======'
# Example: devkit advisor addr-align -i /opt/DevKit/wtdbg2-2.5 -c make -b make -r html
- devkit advisor addr-align -i path to the source code folder to be scanned -c source code build command -r html
- mv ./addr-align*.html ./byte-alignment-check.html
artifacts:
paths:
- byte-alignment-check.html
name: addr-align
- You are advised to perform the byte alignment check before the build process.
- /opt/DevKit/wtdbg2-2.5 indicates the path to the source code folder to be scanned. Replace it with the actual path.
Parent topic: Byte Alignment Check