diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2b3ab0f19..aec57b388 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -892,9 +892,15 @@ jobs: sudo apt-get install libomp-dev sudo apt-get install valgrind sudo apt-get install gcovr + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2 + with: + key: ${{ github.job }} + create-symlink: true - name: CMake configure run: > cmake -S . -B build + -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache -G Ninja -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON -D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON -D CMAKE_BUILD_TYPE=RELEASE