X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=.gitlab-ci.yml;h=7bb6b29a64fbe3fe431b7a0981fbea7ed98dea04;hb=9dbaa7f67d3e3b3c48db5dc6ea91be57f91ff496;hp=d39c2adae9317be6abdb32bc25f35a33414395e1;hpb=1117d7c3cd52cc73a757f3c6f62c6602551d7ad3;p=soc.git diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d39c2ada..7bb6b29a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,16 +3,25 @@ image: debian:10 cache: paths: - ccache + - .cache/pip + - apt-cache + +variables: + PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" + GIT_SUBMODULE_STRATEGY: recursive build: stage: build before_script: - - apt-get update + - mkdir -p apt-cache + - apt-get -o dir::cache::archives="$(pwd)/apt-cache" update - >- - apt-get -y install + apt-get -o dir::cache::archives="$(pwd)/apt-cache" -y install build-essential git python3-dev python3-pip python3-setuptools python3-wheel pkg-config tcl-dev libreadline-dev bison flex libffi-dev ccache python3-venv + binutils-powerpc64-linux-gnu binutils-powerpc64le-linux-gnu + autoconf gperf libgmp-dev libmpfr-dev - export PATH="/usr/lib/ccache:$PATH" - export CCACHE_BASEDIR="$PWD" - export CCACHE_DIR="$PWD/ccache" @@ -27,6 +36,14 @@ build: - . .env/bin/activate - pip install nose + - git clone --depth 1 https://github.com/SRI-CSL/yices2.git yices2 + - pushd yices2 + - autoconf + - ./configure + - make -j$(nproc) + - make install + - popd + - git clone --depth 1 https://github.com/YosysHQ/yosys.git yosys - pushd yosys - make config-gcc @@ -35,6 +52,11 @@ build: - popd - yosys -V + - git clone --depth 1 https://github.com/YosysHQ/SymbiYosys.git SymbiYosys + - pushd SymbiYosys + - make install + - popd + - git clone --depth 1 https://github.com/nmigen/nmigen.git nmigen - pushd nmigen - python setup.py develop @@ -45,6 +67,11 @@ build: - python setup.py develop - popd + - git clone --depth 1 https://github.com/nmigen/nmigen-soc.git nmigen-soc + - pushd nmigen-soc + - python setup.py develop + - popd + - git clone --depth 1 git://git.libre-riscv.org/ieee754fpu.git ieee754fpu - pushd ieee754fpu - python setup.py develop @@ -68,4 +95,5 @@ build: - popd - python setup.py develop - - nosetests -v --processes=-1 + - python src/soc/decoder/pseudo/pywriter.py + - nosetests -v --processes=-1 --process-timeout=120