Skip to content

Commit 0a90083

Browse files
committed
ci: add job to build library using nuclei llvm toolchain
Signed-off-by: Huaqi Fang <578567190@qq.com>
1 parent 0459dab commit 0a90083

File tree

1 file changed

+39
-3
lines changed

1 file changed

+39
-3
lines changed

.gitlab-ci.yml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ build_library:
7272
- merge_requests
7373
artifacts:
7474
when: always
75-
name: "nmsis_library-job${CI_JOB_ID}-${CI_COMMIT_SHA::8}"
75+
name: "nmsis_library_nuclei_gnu-job${CI_JOB_ID}-${CI_COMMIT_SHA::8}"
7676
paths:
7777
- NMSIS/gen
7878
- NMSIS/build/*/*/build.log
@@ -84,7 +84,7 @@ build_library:
8484
- apt install -y python3 python3-pip
8585
- pip3 install prettytable
8686
- cd NMSIS
87-
- echo "Generate NMSIS Library for Nuclei RISC-V Processors"
87+
- echo "Generate NMSIS Library for Nuclei RISC-V Processors with Nuclei GNU Toolchain"
8888
- make gen | grep -E "^Build\ Library|^\+|^\|"
8989
- buildsts=${PIPESTATUS[0]}
9090
- mkdir -p gen/
@@ -120,7 +120,7 @@ build_library_terapines:
120120
- echo "Setup Zcc toolchain PATH"
121121
- export PATH=/home/share/devtools/zcc/linux64/latest/bin/:$PATH
122122
- zcc -v
123-
- echo "Generate NMSIS Library for Nuclei RISC-V Processors with terapines"
123+
- echo "Generate NMSIS Library for Nuclei RISC-V Processors with Terapines ZCC Toolchain"
124124
- make gen TOOLCHAIN=terapines > build_terapines.log 2>&1
125125
- buildsts=${PIPESTATUS[0]}
126126
- mkdir -p gen_terapines/
@@ -130,6 +130,42 @@ build_library_terapines:
130130
fi
131131
- exit $buildsts
132132

133+
build_library_llvm:
134+
stage: build
135+
interruptible: true
136+
retry: 1
137+
tags:
138+
- env::docker
139+
- env::nfs
140+
- net::outside
141+
only:
142+
refs:
143+
- master
144+
- develop
145+
- /^feature\/.*/
146+
- merge_requests
147+
artifacts:
148+
when: always
149+
name: "nmsis_lib_nuclei_llvm-job${CI_JOB_ID}-${CI_COMMIT_SHA::8}"
150+
paths:
151+
- NMSIS/gen_nuclei_llvm
152+
- NMSIS/build_nuclei_llvm.log
153+
expire_in: 2 day
154+
script:
155+
- apt update
156+
- apt install -y python3 python3-pip
157+
- pip3 install prettytable
158+
- cd NMSIS
159+
- echo "Generate NMSIS Library for Nuclei RISC-V Processors with Nuclei LLVM Toolchain"
160+
- make gen TOOLCHAIN=nuclei_llvm > build_nuclei_llvm.log 2>&1
161+
- buildsts=${PIPESTATUS[0]}
162+
- mkdir -p gen_nuclei_llvm/
163+
- |
164+
if [ -d "Library" ]; then
165+
mv Library gen_nuclei_llvm/Library
166+
fi
167+
- exit $buildsts
168+
133169
build_align_library:
134170
stage: build
135171
interruptible: true

0 commit comments

Comments
 (0)