mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-08 19:44:57 -05:00
ci: Use ccache when building the project
In some cases, even small changes in zamacompiler lead to the recompilation of the LLVM / MLIR sources, causing significant delay in the CI. This change forces the use of ccache to speed up recompilation after the project has been built at least once.
This commit is contained in:
committed by
Ayoub Benaissa
parent
d6dc9874d9
commit
2033a70ad2
@@ -1,7 +1,10 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
RUN apt-get update
|
||||
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y curl cmake g++ build-essential python3 python3-pip python3-setuptools ninja-build git zlib1g-dev
|
||||
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y curl cmake g++ build-essential python3 python3-pip python3-setuptools ninja-build git zlib1g-dev ccache
|
||||
# setup ccache with an unlimited amount of files and storage
|
||||
RUN ccache -M 0
|
||||
RUN ccache -F 0
|
||||
RUN pip install numpy pybind11==2.6.2 PyYAML
|
||||
# Setup Concrete
|
||||
COPY --from=ghcr.io/zama-ai/concrete-api-env:latest /target/release /concrete/target/release
|
||||
@@ -12,7 +15,7 @@ COPY /llvm-project /llvm-project
|
||||
COPY /compiler /compiler
|
||||
WORKDIR /compiler
|
||||
RUN mkdir -p /build
|
||||
RUN make BUILD_DIR=/build zamacompiler python-bindings
|
||||
RUN make BUILD_DIR=/build CCACHE=ON zamacompiler python-bindings
|
||||
ENV PYTHONPATH "$PYTHONPATH:/build/tools/zamalang/python_packages/zamalang_core:/build/tools/zamalang/python_packages/zamalang_core/mlir/_mlir_libs/"
|
||||
ENV PATH "$PATH:/build/bin"
|
||||
ENV RT_LIB "/build/lib/libZamalangRuntime.so"
|
||||
Reference in New Issue
Block a user