6 Star 32 Fork 17

RISCV-MCU / hbird-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.gitlab-ci.yml 4.62 KB
一键复制 编辑 原始数据 按行查看 历史
variables:
DOC_SERVER: doc
DOC_CENTER: /home/xl_ci/doc_center
before_script:
- source /home/share/devtools/env.sh
- source .ci/build_sdk.sh
- source .ci/build_applications.sh
stages:
- doc_build
- doc_deploy
- build_hbird_eval
- build_ddr200t
default:
interruptible: true
## Job for build document
build_doc:
stage: doc_build
only:
changes:
- doc/source/**/**/**/*
- .gitlab-ci.yml
retry: 1
artifacts:
name: "hbird_sdk_doc-${CI_COMMIT_SHA::8}"
paths:
- doc/build
expire_in: 2 day
script:
- cd doc
# https://www.baeldung.com/linux/locale-environment-variables#3-lcall-environment-variable
- export LC_ALL=en_EN.UTF-8
- activate_swdev
#- pip3 install --user -r requirements.txt
#- export PATH=$HOME/.local/bin:$PATH
- make clean
- make all
- make latexpdf
- make clean_xml
- cp build/latex/*.pdf build/html/
tags:
- env::native
- host::whss1
## Job for deploy document to internal server
deploy_doc:
stage: doc_deploy
when: on_success
retry: 1
only:
refs:
- master
changes:
- doc/source/**/**/**/*
- .gitlab-ci.yml
script:
- ssh $DOC_SERVER "rm -rf $DOC_CENTER/hbird_sdk/*"
- ssh $DOC_SERVER "mkdir -p $DOC_CENTER/hbird_sdk/"
- cd doc/build
- scp -r html $DOC_SERVER:$DOC_CENTER/hbird_sdk
tags:
- env::native
- host::whss1
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/**/**/**/*
- .gitlab-ci.yml
script:
- ./.ci/ftp_deploy.sh $FTPUSER $FTPPWD $FTPSERVER doc/build/html hbird_sdk
tags:
- env::native
- host::whss1
dependencies:
- build_doc
## Jobs for board hbird_eval
.build_hbird_eval_job_template: &build_hbird_eval_job_def
stage: build_hbird_eval
tags:
- env::native
- host::whss1
script:
- SOC=hbird BOARD=hbird_eval hsdk_build_directory application
- SOC=hbird BOARD=hbird_eval hsdk_build_directory test
# Build For HBird Evaluation Board with E203 Core, with Flash, FlashXIP, ILM Mode
build_hbird_eval_ilm_e203:
variables:
DOWNLOAD: "ilm"
SOC: "hbird"
CORE: "e203"
<<: *build_hbird_eval_job_def
build_hbird_eval_flash_e203:
variables:
DOWNLOAD: "flash"
CORE: "e203"
<<: *build_hbird_eval_job_def
build_hbird_eval_flashxip_e203:
variables:
DOWNLOAD: "flashxip"
CORE: "e203"
<<: *build_hbird_eval_job_def
# Build For E203E, with Flash, FlashXIP, ILM Mode
build_hbird_eval_ilm_e203e:
variables:
DOWNLOAD: "ilm"
CORE: "e203e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_hbird_eval_job_def
build_hbird_eval_flash_e203e:
variables:
DOWNLOAD: "flash"
CORE: "e203e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_hbird_eval_job_def
build_hbird_eval_flashxip_e203e:
variables:
DOWNLOAD: "flashxip"
CORE: "e203e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_hbird_eval_job_def
## Jobs for board ddr200t
.build_ddr200t_job_template: &build_ddr200t_job_def
stage: build_ddr200t
tags:
- env::native
- host::whss1
script:
- SOC=hbirdv2 BOARD=ddr200t hsdk_build_directory application
- SOC=hbirdv2 BOARD=ddr200t hsdk_build_directory test
# Build For HBird Evaluation Board with E203 Core, with Flash, FlashXIP, ILM Mode
build_ddr200t_ilm_e203:
variables:
DOWNLOAD: "ilm"
CORE: "e203"
<<: *build_ddr200t_job_def
build_ddr200t_flash_e203:
variables:
DOWNLOAD: "flash"
CORE: "e203"
<<: *build_ddr200t_job_def
build_ddr200t_flashxip_e203:
variables:
DOWNLOAD: "flashxip"
CORE: "e203"
<<: *build_ddr200t_job_def
# Build For E203E, with Flash, FlashXIP, ILM Mode
build_ddr200t_ilm_e203e:
variables:
DOWNLOAD: "ilm"
CORE: "e203e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_ddr200t_job_def
build_ddr200t_flash_e203e:
variables:
DOWNLOAD: "flash"
CORE: "e203e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_ddr200t_job_def
build_ddr200t_flashxip_e203e:
variables:
DOWNLOAD: "flashxip"
CORE: "e203e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_ddr200t_job_def
C
1
https://gitee.com/riscv-mcu/hbird-sdk.git
git@gitee.com:riscv-mcu/hbird-sdk.git
riscv-mcu
hbird-sdk
hbird-sdk
master

搜索帮助