mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
chore(compiler): Get the concrete capi release
This commit is contained in:
11
.github/workflows/conformance.yml
vendored
11
.github/workflows/conformance.yml
vendored
@@ -21,6 +21,15 @@ jobs:
|
||||
LLVM_PROJECT: $GITHUB_WORKSPACE/llvm_project
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Get the concrete CAPI release
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image: ghcr.io/zama-ai/concrete-api-env:latest
|
||||
username: ${{ secrets.GHCR_LOGIN }}
|
||||
password: ${{ secrets.GHCR_PASSWORD }}
|
||||
options: -v ${{ github.workspace }}:/workspace
|
||||
run: mkdir -p /workspace/concrete/target && cp -r /target/release /workspace/concrete/target
|
||||
- name: Build and test compiler
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
@@ -29,4 +38,4 @@ jobs:
|
||||
username: ${{ secrets.GHCR_LOGIN }}
|
||||
password: ${{ secrets.GHCR_PASSWORD }}
|
||||
options: -v ${{ github.workspace }}:/workspace -e PYTHONPATH=/llvm-project/build/python:/workspace/compiler/build/python
|
||||
run: cd /workspace/compiler && mkdir build && cmake -B build . -DLLVM_DIR=$LLVM_PROJECT/build/lib/cmake/llvm -DMLIR_DIR=$LLVM_PROJECT/build/lib/cmake/mlir && make -C build/ all zamacompiler && make test && pip install pytest && make test_python
|
||||
run: cd /workspace/compiler && mkdir build && cmake -B build . -DCONCRETE_FFI_RELEASE=/workspace/concrete/target/release -DLLVM_DIR=$LLVM_PROJECT/build/lib/cmake/llvm -DMLIR_DIR=$LLVM_PROJECT/build/lib/cmake/mlir && make -C build/ all zamacompiler && make test && pip install pytest && make test_python
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
from qbozama/mlir:69c6ea9038e5f3ef91a3c5ab59fae3276f95628b
|
||||
FROM qbozama/mlir:69c6ea9038e5f3ef91a3c5ab59fae3276f95628b
|
||||
|
||||
ENV PYTHONPATH=/llvm-project/build/python:/compiler/build/python:$PYTHONPATH
|
||||
|
||||
COPY --from=ghcr.io/zama-ai/concrete-api-env:c6dcab41c272d661dd93980d14549e88db1c32b1 /target/release /concrete/target/release
|
||||
COPY /compiler /compiler
|
||||
WORKDIR /compiler
|
||||
ENV CONCRETE_PROJECT=/concrete
|
||||
RUN mkdir -p build && make -B build && make -C build all zamacompiler
|
||||
Reference in New Issue
Block a user