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 libssl-dev curl
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
31 - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
32 - source $HOME/.cargo/env
34 - export CCACHE_DIR="$PWD/ccache"
37 - python3 -m venv .env
41 - git clone --depth 1 https://github.com/SRI-CSL/yices2.git yices2
45 - make -j$(nproc) > /dev/null
49 - git clone --depth 1 https://github.com/YosysHQ/yosys.git yosys
52 - make -j$(nproc) > /dev/null
57 - git clone --depth 1 https://github.com/YosysHQ/SymbiYosys.git SymbiYosys
59 - make install > /dev/null
62 - git clone --depth 1 https://github.com/nmigen/nmigen.git nmigen
64 - python setup.py develop
67 - git clone --depth 1 https://git.libre-soc.org/git/nmutil.git nmutil
69 - python setup.py develop
72 - git clone --depth 1 https://git.libre-soc.org/git/nmigen-soc.git nmigen-soc
74 - git tag | xargs git tag -d
75 - python setup.py develop
78 - git clone --depth 1 https://git.libre-soc.org/git/ieee754fpu.git ieee754fpu
80 - python setup.py develop
83 - git clone --depth 1 https://git.libre-soc.org/git/openpower-isa.git openpower-isa
85 - python3 setup.py develop
86 - make -j$(nproc) svanalysis > /dev/null
87 - make -j$(nproc) pywriter > /dev/null 2>&1
90 - git clone --depth 1 https://git.libre-soc.org/git/c4m-jtag.git c4m-jtag
92 - python setup.py develop
95 - IEEE754FPU_PATH="$(pwd)"/ieee754fpu
96 - git clone --depth 1 --recursive https://github.com/billzorn/sfpy.git sfpy
98 - pushd berkeley-softfloat-3
99 - git apply "$IEEE754FPU_PATH"/berkeley-softfloat.patch
102 - git apply ../softposit_sfpy_build.patch
103 - git apply "$IEEE754FPU_PATH"/SoftPosit.patch
105 - pip install --upgrade -r requirements.txt
106 - make lib -j$(nproc)
107 - make cython -j$(nproc)
108 - make wheel -j$(nproc)
109 - pip install dist/sfpy*.whl
112 - cargo install maturin
113 - git clone --depth 1 https://git.libre-soc.org/git/power-instruction-analyzer.git pia
115 - maturin build --cargo-extra-args=--features=python-extension
116 - python3 -m pip install target/wheels/*.whl
119 - python setup.py develop
120 - pywriter > /dev/null 2>&1
121 - nosetests -v --processes=-1 --process-timeout=120