Skip to content

Commit 8528c56

Browse files
committed
CI: CCache for GNUmake CUDA
1 parent ba1c7e0 commit 8528c56

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/cuda.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,16 @@ jobs:
8585
- name: install dependencies
8686
run: |
8787
.github/workflows/dependencies/nvcc11.sh
88+
- name: CCache Cache
89+
uses: actions/cache@v2
90+
# - once stored under a key, they become immutable (even if local cache path content changes)
91+
# - for a refresh the key has to change, e.g., hash of a tracked file in the key
92+
with:
93+
path: ~/.ccache
94+
key: ccache-cuda-gnumake-${{ hashFiles('.github/workflows/cuda.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }}
95+
restore-keys: |
96+
ccache-cuda-gnumake-${{ hashFiles('.github/workflows/cuda.yml') }}-
97+
ccache-cuda-gnumake-
8898
- name: build WarpX
8999
run: |
90100
export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}

.github/workflows/dependencies/hip.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export CEI_TMP="/tmp/cei"
5151

5252
# ccache 4.2+
5353
#
54-
cmake-easyinstall --prefix=/usr/local \
54+
CXXFLAGS="" cmake-easyinstall --prefix=/usr/local \
5555
git+https://github.com/ccache/[email protected] \
5656
-DCMAKE_BUILD_TYPE=Release \
5757
-DENABLE_DOCUMENTATION=OFF \

0 commit comments

Comments
 (0)