10 PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
11 GIT_SUBMODULE_STRATEGY: recursive
17 - apt-get -o dir::cache::archives="$(pwd)/apt-cache" update
19 apt-get -o dir::cache::archives="$(pwd)/apt-cache" -y install
20 build-essential git python3-dev python3-pip
21 python3-setuptools python3-wheel pkg-config tcl-dev
22 libreadline-dev bison flex libffi-dev ccache python3-venv
23 binutils-powerpc64-linux-gnu binutils-powerpc64le-linux-gnu
24 autoconf gperf libgmp-dev libmpfr-dev
25 - export PATH="/usr/lib/ccache:$PATH"
26 - export CCACHE_BASEDIR="$PWD"
27 - export CCACHE_DIR="$PWD/ccache"
28 - export CCACHE_COMPILERCHECK=content
29 - ccache --zero-stats || true
30 - ccache --show-stats || true
32 - export CCACHE_DIR="$PWD/ccache"
35 - python3 -m venv .env
39 - git clone --depth 1 https://github.com/SRI-CSL/yices2.git yices2
47 - git clone --depth 1 https://github.com/YosysHQ/yosys.git yosys
55 - git clone --depth 1 https://github.com/YosysHQ/SymbiYosys.git SymbiYosys
60 - git clone --depth 1 https://github.com/nmigen/nmigen.git nmigen
62 - python setup.py develop
65 - git clone --depth 1 git://git.libre-riscv.org/nmutil.git nmutil
67 - python setup.py develop
70 - git clone --depth 1 git://git.libre-riscv.org/ieee754fpu.git ieee754fpu
72 - python setup.py develop
75 - IEEE754FPU_PATH="$(pwd)"/ieee754fpu
76 - git clone --depth 1 --recursive https://github.com/billzorn/sfpy.git sfpy
78 - pushd berkeley-softfloat-3
79 - git apply "$IEEE754FPU_PATH"/berkeley-softfloat.patch
82 - git apply ../softposit_sfpy_build.patch
83 - git apply "$IEEE754FPU_PATH"/SoftPosit.patch
85 - pip install --upgrade -r requirements.txt
87 - make cython -j$(nproc)
88 - make wheel -j$(nproc)
89 - pip install dist/sfpy*.whl
92 - python setup.py develop
93 - python src/soc/decoder/pseudo/pywriter.py
94 - nosetests -v --processes=-1 --process-timeout=120