From c196c78e1aed3d1620ff1b83f56405922f8bb783 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 11 May 2022 20:58:48 -0700 Subject: [PATCH] fix ci not finding sfpy --- .gitlab-ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e539b62b..bf6b96bc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,16 +37,21 @@ build: python3-keyring python3-pip python3-setuptools + python3-venv python3-wheel tcl-dev - - export PATH="$HOME/.local/bin:/usr/lib/ccache:$PATH" + - export PATH="/usr/lib/ccache:$PATH" - export CCACHE_BASEDIR="$PWD" - export CCACHE_DIR="$PWD/ccache" - export CCACHE_COMPILERCHECK=content - ccache --zero-stats || true - ccache --show-stats || true - - python3 -m pip install --user pytest-xdist twine cython + - python3 -m venv --system-site-packages .venv + - . .venv/bin/activate + - pip install pytest-xdist twine cython script: + - . .venv/bin/activate + - IEEE754FPU_PATH="$(pwd)" - git clone --depth 1 --recursive -b v0.6.0 https://github.com/billzorn/sfpy.git sfpy - pushd sfpy @@ -57,12 +62,10 @@ build: - git apply ../softposit_sfpy_build.patch - git apply "$IEEE754FPU_PATH"/SoftPosit.patch - popd - - ln -s `which python3` ~/.local/bin/python - make lib -j$(nproc) - make cython -j$(nproc) - make wheel -j$(nproc) - - rm ~/.local/bin/python - - python3 -m pip install --user dist/sfpy*.whl + - pip install --force-reinstall dist/sfpy*.whl - popd - git clone --depth 1 -b yosys-0.17 https://github.com/YosysHQ/yosys.git yosys -- 2.30.2