mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-08 19:44:57 -05:00
chore: add installation targets in Makefile
MacOS require a way to find the runtime library when trying to build a shared library at runtime, so we add a way to install it globally for testing
This commit is contained in:
1
.github/workflows/continuous-integration.yml
vendored
1
.github/workflows/continuous-integration.yml
vendored
@@ -155,6 +155,7 @@ jobs:
|
||||
run: |
|
||||
cd compiler
|
||||
export CONCRETE_PROJECT=${{ github.workspace }}/concrete
|
||||
make install_runtime_lib
|
||||
make test
|
||||
|
||||
BuildAndTestDF:
|
||||
|
||||
@@ -73,6 +73,18 @@ test: test-check test-end-to-end-jit test-python support-unit-test testlib-unit-
|
||||
|
||||
test-dataflow: test-end-to-end-jit-dfr test-end-to-end-jit-auto-parallelization
|
||||
|
||||
# install/uninstall
|
||||
|
||||
install: install_runtime_lib
|
||||
|
||||
uninstall: uninstall_runtime_lib
|
||||
|
||||
install_runtime_lib: concretecompiler
|
||||
cp $(BUILD_DIR)/lib/libConcretelangRuntime* /usr/local/lib
|
||||
|
||||
uninstall_runtime_lib:
|
||||
-rm /usr/local/lib/libConcretelangRuntime*
|
||||
|
||||
# unit-test
|
||||
|
||||
testlib-unit-test: build-testlib-unit-test
|
||||
@@ -204,4 +216,8 @@ update_python_version:
|
||||
package_py39 \
|
||||
package_py310 \
|
||||
release_tarballs \
|
||||
update_python_version
|
||||
update_python_version \
|
||||
install \
|
||||
uninstall\
|
||||
install_runtime_lib \
|
||||
uninstall_runtime_lib
|
||||
|
||||
Reference in New Issue
Block a user