11 PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
12 GIT_SUBMODULE_STRATEGY: recursive
20 - apt-get -o dir::cache::archives="$(pwd)/apt-cache" update
22 apt-get -o dir::cache::archives="$(pwd)/apt-cache" -y install
23 build-essential git python3-dev python3-pip
24 python3-setuptools python3-wheel pkg-config tcl-dev
25 libreadline-dev bison flex libffi-dev ccache python3-venv
26 binutils-powerpc64-linux-gnu binutils-powerpc64le-linux-gnu
27 autoconf gperf libgmp-dev libmpfr-dev libssl-dev curl
28 - export PATH="/usr/lib/ccache:$PATH"
29 - export CCACHE_BASEDIR="$PWD"
30 - export CCACHE_DIR="$PWD/ccache"
31 - export CCACHE_COMPILERCHECK=content
32 - ccache --zero-stats || true
33 - ccache --show-stats || true
34 - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
35 - source $HOME/.cargo/env
37 - export CCACHE_DIR="$PWD/ccache"
40 - python3 -m venv .env
44 - git clone --depth 1 https://github.com/SRI-CSL/yices2.git yices2
48 - make -j$(nproc) > /dev/null
52 - git clone --depth 1 https://github.com/YosysHQ/yosys.git yosys
55 - make -j$(nproc) > /dev/null
60 - git clone --depth 1 https://github.com/YosysHQ/SymbiYosys.git SymbiYosys
62 - make install > /dev/null
65 - git clone --depth 1 https://github.com/nmigen/nmigen.git nmigen
67 - python setup.py develop
70 - git clone --depth 1 https://git.libre-soc.org/git/nmutil.git nmutil
72 - python setup.py develop
75 - git clone --depth 1 https://git.libre-soc.org/git/nmigen-soc.git nmigen-soc
77 - git tag | xargs git tag -d
78 - python setup.py develop
81 - git clone --depth 1 https://git.libre-soc.org/git/ieee754fpu.git ieee754fpu
83 - python setup.py develop
86 - git clone --depth 1 https://git.libre-soc.org/git/openpower-isa.git openpower-isa
88 - python3 setup.py develop
89 - make -j$(nproc) svanalysis > /dev/null
90 - make -j$(nproc) pyfnwriter > /dev/null 2>&1
91 - make -j$(nproc) pywriter > /dev/null 2>&1
94 - git clone --depth 1 https://git.libre-soc.org/git/c4m-jtag.git c4m-jtag
96 - python setup.py develop
99 - IEEE754FPU_PATH="$(pwd)"/ieee754fpu
100 - git clone --depth 1 --recursive https://github.com/billzorn/sfpy.git sfpy
102 - pushd berkeley-softfloat-3
103 - git apply "$IEEE754FPU_PATH"/berkeley-softfloat.patch
106 - git apply ../softposit_sfpy_build.patch
107 - git apply "$IEEE754FPU_PATH"/SoftPosit.patch
109 - pip install --upgrade -r requirements.txt
110 - make lib -j$(nproc)
111 - make cython -j$(nproc)
112 - make wheel -j$(nproc)
113 - pip install dist/sfpy*.whl
116 - python3 -m pip install 'maturin>=0.11,<0.12'
117 - git clone --depth 1 https://git.libre-soc.org/git/power-instruction-analyzer.git pia
119 - maturin build --cargo-extra-args=--features=python-extension
120 - python3 -m pip install target/wheels/*.whl
123 - python setup.py develop
124 - nosetests -v --processes=-1 --process-timeout=120 -w src/