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 https://git.libre-soc.org/git/pytest-output-to-files.git pytest-output-to-files
60 - pushd pytest-output-to-files
62 - python3 setup.py develop
65 - git clone --depth 1 -b Yices-2.6.4 https://github.com/SRI-CSL/yices2.git yices2
73 - git clone --depth 1 -b yosys-0.17 https://github.com/YosysHQ/yosys.git yosys
81 - git clone https://github.com/YosysHQ/SymbiYosys.git SymbiYosys
83 - git checkout d10e472edf4ea9be3aa6347b264ba575fbea933a
87 - git clone --depth 1 -b v1.5.2 https://github.com/cocotb/cocotb.git cocotb
89 - python3 setup.py install
92 - git clone --depth 1 https://gitlab.com/nmigen/nmigen.git nmigen
95 - python3 setup.py develop
98 - git clone --depth 1 https://git.libre-soc.org/git/mdis.git mdis
101 - python3 setup.py develop
104 - git clone --depth 1 https://git.libre-soc.org/git/nmutil.git nmutil
107 - python3 setup.py develop
110 - git clone --depth 1 https://git.libre-soc.org/git/nmigen-soc.git nmigen-soc
112 - git tag | xargs git tag -d
113 - python setup.py develop
116 - git clone --depth 1 https://git.libre-soc.org/git/ieee754fpu.git ieee754fpu
118 - python setup.py develop
121 - git clone --depth 1 https://git.libre-soc.org/git/openpower-isa.git openpower-isa
122 - pushd openpower-isa
123 - python3 setup.py develop
124 - if ! out="$(make 2>&1)"; then echo "$out"; exit 1; fi
127 - git clone --depth 1 https://git.libre-soc.org/git/c4m-jtag.git c4m-jtag
129 - python setup.py develop
132 - IEEE754FPU_PATH="$(pwd)"/ieee754fpu
133 - git clone --depth 1 --recursive -b v0.6.0 https://github.com/billzorn/sfpy.git sfpy
135 - git apply "$IEEE754FPU_PATH"/sfpy.patch
136 - pushd berkeley-softfloat-3
137 - git apply "$IEEE754FPU_PATH"/berkeley-softfloat.patch
140 - git apply ../softposit_sfpy_build.patch
141 - git apply "$IEEE754FPU_PATH"/SoftPosit.patch
143 - pip install -r requirements.txt
144 - make lib -j$(nproc)
145 - make cython -j$(nproc)
146 - make wheel -j$(nproc)
147 - pip install --force-reinstall dist/sfpy*.whl
150 - python3 -m pip install 'maturin>=0.11,<0.12'
151 - git clone --depth 1 https://git.libre-soc.org/git/power-instruction-analyzer.git pia
153 - maturin build --cargo-extra-args=--features=python-extension
154 - python3 -m pip install target/wheels/*.whl
157 - python setup.py develop
158 - SILENCELOG='!*,default' pytest -v --maxfail=10