10 PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
11 GIT_SUBMODULE_STRATEGY: recursive
18 - apt-get -o dir::cache::archives="$(pwd)/apt-cache" update
20 apt-get -o dir::cache::archives="$(pwd)/apt-cache" -y install
21 build-essential git python3-dev python3-pip
22 python3-setuptools python3-wheel pkg-config tcl-dev
23 libreadline-dev bison flex libffi-dev ccache python3-venv
24 binutils-powerpc64-linux-gnu binutils-powerpc64le-linux-gnu
25 autoconf gperf libgmp-dev libmpfr-dev libssl-dev curl
26 - export PATH="/usr/lib/ccache:$PATH"
27 - export CCACHE_BASEDIR="$PWD"
28 - export CCACHE_DIR="$PWD/ccache"
29 - export CCACHE_COMPILERCHECK=content
30 - ccache --zero-stats || true
31 - ccache --show-stats || true
32 - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
33 - source $HOME/.cargo/env
35 - export CCACHE_DIR="$PWD/ccache"
38 - python3 -m venv .env
42 - git clone --depth 1 https://github.com/SRI-CSL/yices2.git yices2
46 - make -j$(nproc) > /dev/null
50 - git clone --depth 1 https://github.com/YosysHQ/yosys.git yosys
53 - make -j$(nproc) > /dev/null
58 - git clone --depth 1 https://github.com/YosysHQ/SymbiYosys.git SymbiYosys
60 - make install > /dev/null
63 - git clone --depth 1 https://github.com/nmigen/nmigen.git nmigen
65 - python setup.py develop
68 - git clone --depth 1 https://git.libre-soc.org/git/nmutil.git nmutil
70 - python setup.py develop
73 - git clone --depth 1 https://git.libre-soc.org/git/nmigen-soc.git nmigen-soc
75 - git tag | xargs git tag -d
76 - python setup.py develop
79 - git clone --depth 1 https://git.libre-soc.org/git/ieee754fpu.git ieee754fpu
81 - python setup.py develop
84 - git clone --depth 1 https://git.libre-soc.org/git/openpower-isa.git openpower-isa
86 - python3 setup.py develop
87 - make -j$(nproc) svanalysis > /dev/null
88 - make -j$(nproc) pyfnwriter > /dev/null 2>&1
89 - make -j$(nproc) pywriter > /dev/null 2>&1
92 - git clone --depth 1 https://git.libre-soc.org/git/c4m-jtag.git c4m-jtag
94 - python setup.py develop
97 - IEEE754FPU_PATH="$(pwd)"/ieee754fpu
98 - git clone --depth 1 --recursive https://github.com/billzorn/sfpy.git sfpy
100 - pushd berkeley-softfloat-3
101 - git apply "$IEEE754FPU_PATH"/berkeley-softfloat.patch
104 - git apply ../softposit_sfpy_build.patch
105 - git apply "$IEEE754FPU_PATH"/SoftPosit.patch
107 - pip install --upgrade -r requirements.txt
108 - make lib -j$(nproc)
109 - make cython -j$(nproc)
110 - make wheel -j$(nproc)
111 - pip install dist/sfpy*.whl
114 - cargo install maturin
115 - git clone --depth 1 https://git.libre-soc.org/git/power-instruction-analyzer.git pia
117 - maturin build --cargo-extra-args=--features=python-extension
118 - python3 -m pip install target/wheels/*.whl
121 - python setup.py develop
122 - nosetests -v --processes=-1 --process-timeout=120 -w src/