Commit a0a80157 authored by Dimitris Lampridis's avatar Dimitris Lampridis

ci: cleanup of CI and automatic build of HDL top-levels

parent 745c30df
......@@ -2,23 +2,17 @@
#
# SPDX-FileCopyrightText: 2019 CERN
---
variables:
GIT_SUBMODULE_STRATEGY: normal
EDL_CI_DOC_SRC_PATH: 'doc'
EDL_CI_DOC_DST_PATH: '$EDL_CI_EOS_OUTPUT_DIR/doc'
include:
- project: 'be-cem-edl/evergreen/gitlab-ci'
ref: master
file:
- 'edl-gitlab-ci.yml'
variables:
KOJI_TARGET: 'ohwr7'
KOJI_DISTTAG: '.el7.cern'
DIST_PATH: distribution
BUILD_PATH: distribution/rpmbuild
SRPM_PATH: distribution/rpmbuild/SRPMS/${CI_PROJECT_NAME}*src.rpm
before_script:
- git clone https://ohwr.org/project/wishbone-gen.git ~/git/wbgen2
- export WBGEN2=~/git/wbgen2/wbgen2
- local: 'hdl/syn/.gitlab-ci.yml'
cppcheck:
stage: analyse
......@@ -27,7 +21,6 @@ cppcheck:
script:
- make cppcheck
build-centos-7:
interruptible: true
stage: build
......@@ -55,30 +48,9 @@ build-kernel:
- VERSION: [5.10.149, 5.15.74]
script:
- source /linux-versions.sh
- fetch $VERSION && prepare $VERSION && export KERNELSRC=$(linux $VERSION) && export KERNELSRC=$(linux $VERSION)
- fetch $VERSION && prepare $VERSION && export KERNELSRC=$(linux $VERSION)
- make modules
build-dkms:
stage: build
script:
- yum install -y kernel-devel lua git dkms
- export KERNELSRC=/usr/src/kernels/*/
- export PREFIX=$(mktemp -d)
- make -C software/kernel -f dkms.mk dkms_install
- make -C ${PREFIX}/usr/src/${CI_PROJECT_NAME}*/
build_srpm:
interruptible: true
stage: build
script:
- yum-builddep -y ${DIST_PATH}/*.spec
- export KERNELSRC=/usr/src/kernels/*/
- make -C distribution rpmbuild-source
artifacts:
paths:
- ${SRPM_PATH}
expire_in: 1 day
trtl-project-creator:
interruptible: true
stage: build
......@@ -90,15 +62,3 @@ trtl-project-creator:
# TODO add firmware (need riscv32-gcc)
dependencies:
- build-centos-7
documentation:
stage: build
image:
name: gitlab-registry.cern.ch/coht/common-containers/documentation:latest
script:
- make -C doc html
- mkdir -p $EDL_CI_EOS_OUTPUT_DIR
- cp -a doc/_build/html/* $EDL_CI_EOS_OUTPUT_DIR
artifacts:
paths:
- $EDL_CI_EOS_OUTPUT_DIR
# SPDX-FileCopyrightText: 2022 CERN (home.cern)
#
# SPDX-License-Identifier: LGPL-2.1-or-later
fpga_synthesis:
interruptible: true
stage: build
needs: []
tags:
- xilinx_ise
- "14.7"
parallel:
matrix:
- SYN_NAME:
- spec_mt_demo
script:
- git submodule init && git submodule update
- cd hdl/syn/"$SYN_NAME"/
- hdlmake
- make
- |
if [[ $(cat *.par | grep -c "All constraints were met") = 0 ]]
then
echo -e "\e[31mTiming errors detected in PAR report. Aborting...\e[0m"
exit 1
fi
artifacts:
name: "$SYN_NAME-synthesis-$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
when: always
paths:
- hdl/syn/$SYN_NAME/*.syr
- hdl/syn/$SYN_NAME/*.par
- hdl/syn/$SYN_NAME/*.twr
- hdl/syn/$SYN_NAME/*.bit
- hdl/syn/$SYN_NAME/*.bin
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