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
28 python3-setuptools-scm
38 binutils-powerpc64-linux-gnu
39 binutils-powerpc64le-linux-gnu
46 - export PATH="/usr/lib/ccache:$PATH"
47 - export CCACHE_BASEDIR="$PWD"
48 - export CCACHE_DIR="$PWD/ccache"
49 - export CCACHE_COMPILERCHECK=content
50 - ccache --zero-stats || true
51 - ccache --show-stats || true
52 - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
53 - source $HOME/.cargo/env
55 - python3 -m venv --system-site-packages .env
57 - pip install pytest-xdist==3.3.1 pytest==7.3.1
59 - git clone --depth 1 -b v0.1.1 https://github.com/cocotb/cocotb-bus.git cocotb-bus
61 - pip install . --no-deps
64 - git clone --depth 1 -b v1.5.2 https://github.com/cocotb/cocotb.git cocotb
69 - git clone --depth 1 https://git.libre-soc.org/git/pytest-output-to-files.git pytest-output-to-files
70 - pushd pytest-output-to-files
72 - python3 setup.py develop
75 - git clone --depth 1 -b Yices-2.6.4 https://github.com/SRI-CSL/yices2.git yices2
83 - git clone --depth 1 -b yosys-0.17 https://github.com/YosysHQ/yosys.git yosys
91 - git clone https://github.com/YosysHQ/SymbiYosys.git SymbiYosys
93 - git checkout d10e472edf4ea9be3aa6347b264ba575fbea933a
97 - git clone --depth 1 https://gitlab.com/nmigen/nmigen.git nmigen
100 - python3 setup.py develop
103 - git clone --depth 1 https://git.libre-soc.org/git/mdis.git mdis
106 - python3 setup.py develop
109 - git clone --depth 1 https://git.libre-soc.org/git/nmutil.git nmutil
112 - python3 setup.py develop
115 - git clone --depth 1 https://git.libre-soc.org/git/nmigen-soc.git nmigen-soc
117 - git tag | xargs git tag -d
118 - python setup.py develop
121 - git clone --depth 1 https://git.libre-soc.org/git/ieee754fpu.git ieee754fpu
123 - python setup.py develop
126 - git clone --depth 1 https://git.libre-soc.org/git/openpower-isa.git openpower-isa
127 - pushd openpower-isa
128 - python3 setup.py develop
129 - if ! out="$(make 2>&1)"; then echo "$out"; exit 1; fi
132 - git clone --depth 1 https://git.libre-soc.org/git/c4m-jtag.git c4m-jtag
134 - python setup.py develop
137 - IEEE754FPU_PATH="$(pwd)"/ieee754fpu
138 - git clone --depth 1 --recursive -b v0.6.0 https://github.com/billzorn/sfpy.git sfpy
140 - git apply "$IEEE754FPU_PATH"/sfpy.patch
141 - pushd berkeley-softfloat-3
142 - git apply "$IEEE754FPU_PATH"/berkeley-softfloat.patch
145 - git apply ../softposit_sfpy_build.patch
146 - git apply "$IEEE754FPU_PATH"/SoftPosit.patch
148 - pip install -r requirements.txt
149 - make lib -j$(nproc)
150 - make cython -j$(nproc)
151 - make wheel -j$(nproc)
152 - pip install --force-reinstall dist/sfpy*.whl
155 - python3 -m pip install 'maturin>=0.11,<0.12'
156 - git clone --depth 1 https://git.libre-soc.org/git/power-instruction-analyzer.git pia
158 - maturin build --cargo-extra-args=--features=python-extension
159 - python3 -m pip install target/wheels/*.whl
162 - python setup.py develop
163 - SILENCELOG='!*,default' pytest -v --maxfail=20