mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 12:15:09 -05:00
Set the make variable `CCACHE` to `ON` in order to force the use of `ccache` during compilation of the code. For unknown reasons, the build directory must also be removed. Otherwise, a complete rebuild circumventing the cache is triggered and `ccache` does not have any effect on compilation time. Debug information printing `ccache` statistics before and after the build has also been added.
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Conformance
|
|
|
|
on:
|
|
push:
|
|
branches: [master, test-ci]
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
Formatting:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
- name: Format with clang-format
|
|
run: .github/workflows/scripts/format_cpp.sh
|
|
BuildAndTest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Build and test compiler
|
|
uses: addnab/docker-run-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
image: ghcr.io/zama-ai/zamalang-compiler:latest
|
|
username: ${{ secrets.GHCR_LOGIN }}
|
|
password: ${{ secrets.GHCR_PASSWORD }}
|
|
options: -v ${{ github.workspace }}/compiler:/compiler
|
|
run: |
|
|
echo "Debug: ccache statistics (prior to the build):"
|
|
ccache -s
|
|
cd /compiler
|
|
pip install pytest
|
|
rm -rf /build
|
|
make CCACHE=ON BUILD_DIR=/build test
|
|
echo "Debug: ccache statistics (after the build):"
|
|
ccache -s
|