10 PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
11 GIT_SUBMODULE_STRATEGY: recursive
16 - apt-get -o dir::cache::archives="apt-cache" update
18 apt-get -o dir::cache::archives="apt-cache" -y install
19 build-essential git python3-dev python3-pip
20 python3-setuptools python3-wheel pkg-config tcl-dev
21 libreadline-dev bison flex libffi-dev ccache python3-venv
22 binutils-powerpc64-linux-gnu binutils-powerpc64le-linux-gnu
23 autoconf gperf libgmp-dev
24 - export PATH="/usr/lib/ccache:$PATH"
25 - export CCACHE_BASEDIR="$PWD"
26 - export CCACHE_DIR="$PWD/ccache"
27 - export CCACHE_COMPILERCHECK=content
28 - ccache --zero-stats || true
29 - ccache --show-stats || true
31 - export CCACHE_DIR="$PWD/ccache"
34 - python3 -m venv .env
38 - git clone --depth 1 https://github.com/SRI-CSL/yices2.git yices2
46 - git clone --depth 1 https://github.com/YosysHQ/yosys.git yosys
54 - git clone --depth 1 https://github.com/YosysHQ/SymbiYosys.git SymbiYosys
59 - git clone --depth 1 https://github.com/nmigen/nmigen.git nmigen
61 - python setup.py develop
64 - git clone --depth 1 git://git.libre-riscv.org/nmutil.git nmutil
66 - python setup.py develop
69 - git clone --depth 1 git://git.libre-riscv.org/ieee754fpu.git ieee754fpu
71 - python setup.py develop
74 - IEEE754FPU_PATH="$(pwd)"/ieee754fpu
75 - git clone --depth 1 --recursive https://github.com/billzorn/sfpy.git sfpy
77 - pushd berkeley-softfloat-3
78 - git apply "$IEEE754FPU_PATH"/berkeley-softfloat.patch
81 - git apply ../softposit_sfpy_build.patch
82 - git apply "$IEEE754FPU_PATH"/SoftPosit.patch
84 - pip install --upgrade -r requirements.txt
86 - make cython -j$(nproc)
87 - make wheel -j$(nproc)
88 - pip install dist/sfpy*.whl
91 - python setup.py develop
92 - python src/soc/decoder/pseudo/pywriter.py
93 - nosetests -v --processes=-1 --process-timeout=120