1 Star 0 Fork 7

Daniel/nuclei-sdk

forked from Nuclei-Software/nuclei-sdk 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.gitlab-ci.yml 4.40 KB
一键复制 编辑 原始数据 按行查看 历史
before_script:
- module load nucleisys/riscv-nuclei-elf-gcc
- module load nucleisys/openocd
- source .ci/build_sdk.sh
- source .ci/build_applications.sh
stages:
- doc_build
- doc_deploy
- build_hbird_eval
- build_gd32vf103v_eval
- build_gd32vf103v_rvstar
## Job for build document
build_doc:
stage: doc_build
only:
changes:
- doc/source/**/**/**/*
retry: 1
artifacts:
name: "nuclei_sdk_doc-${CI_COMMIT_SHA::8}"
paths:
- doc/build
expire_in: 2 day
script:
- cd doc
- pip3 install --user -r requirements.txt
- export PATH=$HOME/.local/bin:$PATH
- make clean
- make all
- make latexpdf
- cp build/latex/*.pdf build/html/
tags:
- software-server
## Job for deploy document to internal server
deploy_doc:
stage: doc_deploy
when: on_success
retry: 1
only:
refs:
- master
changes:
- doc/source/**/**/**/*
script:
- ssh xl01 "rm -rf /home/xl_ci/doc_center/nuclei_sdk/*"
- ssh xl01 "mkdir -p /home/xl_ci/doc_center/nuclei_sdk/"
- cd doc/build
- scp -r html xl01:/home/xl_ci/doc_center/nuclei_sdk
tags:
- software-server
dependencies:
- build_doc
## Job for deploy document to nuclei website
deploy_website:
stage: doc_deploy
when: on_success
retry: 1
only:
refs:
- master
changes:
- doc/source/**/**/**/*
script:
- ./.ci/ftp_deploy.sh $FTPUSER $FTPPWD $FTPSERVER doc/build/html nuclei_sdk
tags:
- software-server
dependencies:
- build_doc
## Jobs for board hbird_eval
.build_hbird_eval_job_template: &build_hbird_eval_job_def
stage: build_hbird_eval
script:
- SOC=hbird BOARD=hbird_eval nsdk_build_directory application
- SOC=hbird BOARD=hbird_eval nsdk_build_directory test
# Build For HBird Evaluation Board with N307 Core, with Flash, FlashXIP, ILM Mode
build_hbird_eval_ilm_n307:
variables:
DOWNLOAD: "ilm"
CORE: "n307"
<<: *build_hbird_eval_job_def
build_hbird_eval_flash_n307:
variables:
DOWNLOAD: "flash"
CORE: "n307"
<<: *build_hbird_eval_job_def
build_hbird_eval_flashxip_n307:
variables:
DOWNLOAD: "flashxip"
CORE: "n307"
<<: *build_hbird_eval_job_def
# Build For N205E, with Flash, FlashXIP, ILM Mode
build_hbird_eval_ilm_n205e:
variables:
DOWNLOAD: "ilm"
CORE: "n205e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_hbird_eval_job_def
build_hbird_eval_flash_n205e:
variables:
DOWNLOAD: "flash"
CORE: "n205e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_hbird_eval_job_def
build_hbird_eval_flashxip_n205e:
variables:
DOWNLOAD: "flashxip"
CORE: "n205e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_hbird_eval_job_def
# Build For NX600, with Flash, FlashXIP, ILM Mode
build_hbird_eval_ilm_nx600:
variables:
DOWNLOAD: "ilm"
CORE: "nx600"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_hbird_eval_job_def
build_hbird_eval_flash_nx600:
variables:
DOWNLOAD: "flash"
CORE: "nx600"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_hbird_eval_job_def
build_hbird_eval_flashxip_nx600:
variables:
DOWNLOAD: "flashxip"
CORE: "nx600"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_hbird_eval_job_def
## Jobs for board gd32vf103v_eval
.build_gd32vf103v_eval_job_template: &build_gd32vf103v_eval_job_def
stage: build_gd32vf103v_eval
script:
- SOC=gd32vf103 BOARD=gd32vf103v_eval nsdk_build_directory application
- SOC=gd32vf103 BOARD=gd32vf103v_eval nsdk_build_directory test
build_gd32vf103v_eval_flashxip:
variables:
DOWNLOAD: "flashxip"
CORE: "n205"
<<: *build_gd32vf103v_eval_job_def
## Jobs for board gd32vf103v_rvstar only flashxip mode
.build_gd32vf103v_rvstar_job_template: &build_gd32vf103v_rvstar_job_def
stage: build_gd32vf103v_rvstar
script:
- SOC=gd32vf103 BOARD=gd32vf103v_rvstar nsdk_build_directory application
- SOC=gd32vf103 BOARD=gd32vf103v_rvstar nsdk_build_directory test
build_gd32vf103v_rvstar_flashxip:
variables:
DOWNLOAD: "flashxip"
CORE: "n205"
<<: *build_gd32vf103v_rvstar_job_def
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/danielchen76/nuclei-sdk.git
git@gitee.com:danielchen76/nuclei-sdk.git
danielchen76
nuclei-sdk
nuclei-sdk
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385