Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
1fa98fa9
Commit
1fa98fa9
authored
May 03, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: use new image, update script
parent
68d8c983
Pipeline
#4488
failed with stage
in 1 minute and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
29 deletions
+16
-29
.gitlab-ci.yml
.gitlab-ci.yml
+16
-29
No files found.
.gitlab-ci.yml
View file @
1fa98fa9
# 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
-
ohwr
sw
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
-
ohwr
sw
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
-
ohwr
sw
script
:
script
:
-
make wr_switch_defconfig
-
make wr_switch_defconfig
-
make
-
make
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment