Skip to content

Commit

Permalink
CI: CCache for GNUmake CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Mar 4, 2022
1 parent ba1c7e0 commit 28f3f4c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 28f3f4c

Please sign in to comment.