From 28f3f4caa2ffee38da15d0331a8c275f481d9d09 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Fri, 4 Mar 2022 09:08:33 -0800 Subject: [PATCH] CI: CCache for GNUmake CUDA --- .github/workflows/cuda.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/cuda.yml b/.github/workflows/cuda.yml index 04c4ba76b06..8c2c1f58659 100644 --- a/.github/workflows/cuda.yml +++ b/.github/workflows/cuda.yml @@ -85,6 +85,16 @@ jobs: - name: install dependencies run: | .github/workflows/dependencies/nvcc11.sh + - name: CCache Cache + uses: actions/cache@v2 + # - once stored under a key, they become immutable (even if local cache path content changes) + # - for a refresh the key has to change, e.g., hash of a tracked file in the key + with: + path: ~/.ccache + key: ccache-cuda-gnumake-${{ hashFiles('.github/workflows/cuda.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} + restore-keys: | + ccache-cuda-gnumake-${{ hashFiles('.github/workflows/cuda.yml') }}- + ccache-cuda-gnumake- - name: build WarpX run: | export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}