switch to exact version of cython
[ieee754fpu.git] / .gitlab-ci.yml
1 image: debian:10
2
3 cache:
4 when: always
5 paths:
6 - ccache
7
8 build:
9 stage: build
10 before_script:
11 - apt-get update
12 # one package per line to simplify sorting, git diff, etc.
13 - >-
14 apt-get -y install
15 autoconf
16 bison
17 build-essential
18 ccache
19 clang
20 cmake
21 curl
22 flex
23 gawk
24 git
25 gperf
26 libboost-program-options-dev
27 libffi-dev
28 libftdi-dev
29 libgmp-dev
30 libmpfr-dev
31 libreadline-dev
32 mercurial
33 pkg-config
34 python
35 python3
36 python3-dev
37 python3-keyring
38 python3-pip
39 python3-setuptools
40 python3-venv
41 python3-wheel
42 tcl-dev
43 - export PATH="/usr/lib/ccache:$PATH"
44 - export CCACHE_BASEDIR="$PWD"
45 - export CCACHE_DIR="$PWD/ccache"
46 - export CCACHE_COMPILERCHECK=content
47 - ccache --zero-stats || true
48 - ccache --show-stats || true
49 - python3 -m venv --system-site-packages .venv
50 - . .venv/bin/activate
51 - pip install pytest-xdist twine cython
52 script:
53 - . .venv/bin/activate
54
55 - IEEE754FPU_PATH="$(pwd)"
56 - git clone --depth 1 --recursive -b v0.6.0 https://github.com/billzorn/sfpy.git sfpy
57 - pushd sfpy
58 - pushd berkeley-softfloat-3
59 - git apply "$IEEE754FPU_PATH"/berkeley-softfloat.patch
60 - popd
61 - pushd SoftPosit
62 - git apply ../softposit_sfpy_build.patch
63 - git apply "$IEEE754FPU_PATH"/SoftPosit.patch
64 - popd
65 - make lib -j$(nproc)
66 - make cython -j$(nproc)
67 - make wheel -j$(nproc)
68 - pip install --force-reinstall dist/sfpy*.whl
69 - popd
70
71 - git clone --depth 1 -b yosys-0.17 https://github.com/YosysHQ/yosys.git yosys
72 - pushd yosys
73 - make config-gcc
74 - make -j$(nproc)
75 - make install
76 - popd
77 - yosys -V
78
79 - git clone https://github.com/YosysHQ/SymbiYosys.git SymbiYosys
80 - pushd SymbiYosys
81 - git checkout d10e472edf4ea9be3aa6347b264ba575fbea933a
82 - make install
83 - popd
84
85 - git clone --depth 1 -b Yices-2.6.4 https://github.com/SRI-CSL/yices2.git yices2
86 - pushd yices2
87 - autoconf
88 - ./configure
89 - make -j$(nproc)
90 - make install
91 - popd
92
93 - git clone --depth 1 -b z3-4.8.17 https://github.com/Z3Prover/z3.git z3
94 - pushd z3
95 - python scripts/mk_make.py
96 - cd build
97 - make -j$(nproc)
98 - make install
99 - popd
100
101 - git clone --depth 1 https://gitlab.com/nmigen/nmigen.git nmigen
102 - pushd nmigen
103 - git rev-parse HEAD
104 - python3 setup.py develop
105 - popd
106
107 - git clone --depth 1 https://git.libre-soc.org/git/nmutil.git nmutil
108 - pushd nmutil
109 - git rev-parse HEAD
110 - python3 setup.py develop
111 - popd
112
113 - python3 setup.py develop
114
115 - pytest