Commit 1fa98fa9 authored by Tristan Gingold's avatar Tristan Gingold

CI: use new image, update script

parent 68d8c983
Pipeline #4488 failed with stage
in 1 minute and 56 seconds
# NOTE: to be able to run CI define the following env variables:
# --DOCKER_IMAGE_PATH - the path to docker image
# --CROSS_COMPILE_LM32 - prefix for lm32 cross compiler
# --CROSS_COMPILE_RISCV - prefix for riscv cross compiler
image: ${DOCKER_IMAGE_PATH}
variables: variables:
GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_STRATEGY: normal
before_script: before_script:
- pwd - PATH=/compilers/riscv-11.2-small/bin:/compilers/lm32-gcc-4.5.3/bin:$PATH
- curl https://ohwr.org/project/wrpc-sw/wikis/uploads/9f9224d2249848ed3e854636de9c08dc/riscv-11.2-small.tgz | tar xf -
- ls
- export PATH=/opt/lm32-gcc/bin:$PATH
stages: stages:
- compile - compile
...@@ -21,39 +10,37 @@ stages: ...@@ -21,39 +10,37 @@ stages:
make_wrpc_sw: make_wrpc_sw:
stage: compile stage: compile
tags: tags:
- wrpc_sw - ohwrsw
script: script:
- make spec_defconfig - make spec_defconfig
- make - make
artifacts: artifacts:
name: wrpc_sw_ci_${CI_JOB_NAME}_${CI_JOB_ID} name: wrpc_sw_ci_${CI_JOB_NAME}_${CI_JOB_ID}
paths: paths:
- wrc.bin
- wrc.elf - wrc.elf
- wrc.bram
- wrc.mif
make_all: make_all:
stage: compile stage: compile
tags: tags:
- wrpc_sw - ohwrsw
script: script:
# to make compare_size.sh work - NPROC=$(grep -c ^processor /proc/cpuinfo)
- touch size_db.txt - fail=""
- echo "Using `grep -c ^processor /proc/cpuinfo` parallel jobs". - for f in $(ls configs); do
- GIT_HASH_START="HEAD~1" MAKEFLAGS="-j `grep -c ^processor /proc/cpuinfo`" ./MAKEALL -c - make clean
artifacts: - make $f
name: wrpc_sw_ci_${CI_JOB_NAME}_${CI_JOB_ID} - if ! make -j$NPROC; then
paths: - echo "FAILURE of $f"
- size_info.txt - fail="$fail $f"
- ./*.elf - fi
- ./*.bin - done
- echo "FAILED TARGET are $fail"
- test "$fail" = ""
make_rt_cpu: make_rt_cpu:
stage: compile stage: compile
tags: tags:
- wrpc_sw - ohwrsw
script: script:
- make wr_switch_defconfig - make wr_switch_defconfig
- make - make
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment