ci: change package release process

it should be now faster using the same compilation cache as the test
build.
This commit is contained in:
youben11
2022-09-13 16:32:44 +01:00
committed by Ayoub Benaissa
parent 55b719f100
commit 8f05f9ea72
4 changed files with 52 additions and 65 deletions

View File

@@ -273,26 +273,6 @@ file-check: build-initialized
not: build-initialized
cmake --build $(BUILD_DIR) --target not
# Python packages
define build_image_and_copy_wheels
docker image build -t concrete-compiler-manylinux:$(1) --build-arg python_tag=$(1) -f ../builders/Dockerfile.release_manylinux_2_28_x86_64 ..
docker container run --rm -v ${PWD}/../wheels:/wheels_volume concrete-compiler-manylinux:$(1) cp -r /wheels/. /wheels_volume/.
endef
package_py37: update_python_version
$(call build_image_and_copy_wheels,cp37-cp37m)
package_py38: update_python_version
$(call build_image_and_copy_wheels,cp38-cp38)
package_py39: update_python_version
$(call build_image_and_copy_wheels,cp39-cp39)
package_py310: update_python_version
$(call build_image_and_copy_wheels,cp310-cp310)
release_tarballs:
docker image build -t concrete-compiler-manylinux:linux_x86_64_tarball -f ../builders/Dockerfile.release_tarball_linux_x86_64 ..
docker container run --rm -v ${PWD}/../tarballs:/tarballs_volume concrete-compiler-manylinux:linux_x86_64_tarball cp -r /tarballs/. /tarballs_volume/.
@@ -316,10 +296,6 @@ python_lint:
add-deps \
file-check \
not \
package_py37 \
package_py38 \
package_py39 \
package_py310 \
release_tarballs \
update_python_version \
python_lint \

View File

@@ -35,13 +35,11 @@ class MakeBuild(build_ext):
self.build_extension(ext)
def build_extension(self, ext):
cmd = ["make", f"BUILD_DIR={build_dir()}"]
cmd = ["make", "DATAFLOW_EXECUTION_ENABLED=ON", "CCACHE=ON"]
py_exec = os.environ.get("CONCRETE_COMPILER_Python3_EXECUTABLE")
if py_exec:
cmd.append(f"Python3_EXECUTABLE={py_exec}")
ccache = os.environ.get("CONCRETE_COMPILER_CCACHE")
if ccache:
cmd.append(f"CCACHE={ccache}")
cmd.append(f"BUILD_DIR={build_dir()}")
cmd.append("python-bindings")
subprocess.check_call(cmd)