Skip to content

Commit 6ffad8c

Browse files
committed
CI: CCache for GNUmake CUDA
1 parent b91ee60 commit 6ffad8c

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
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
@@ -53,7 +53,7 @@ export CEI_TMP="/tmp/cei"
5353

5454
# ccache 4.2+
5555
#
56-
cmake-easyinstall --prefix=/usr/local \
56+
CXXFLAGS="" cmake-easyinstall --prefix=/usr/local \
5757
git+https://github.com/ccache/[email protected] \
5858
-DCMAKE_BUILD_TYPE=Release \
5959
-DENABLE_DOCUMENTATION=OFF \

.github/workflows/dependencies/nvcc11.sh

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

5656
# ccache 4.2+
5757
#
58-
cmake-easyinstall --prefix=/usr/local \
58+
CXXFLAGS="" cmake-easyinstall --prefix=/usr/local \
5959
git+https://github.com/ccache/[email protected] \
6060
-DCMAKE_BUILD_TYPE=Release \
6161
-DENABLE_DOCUMENTATION=OFF \

.github/workflows/dependencies/nvhpc.sh

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

4141
# ccache 4.2+
4242
#
43-
cmake-easyinstall --prefix=/usr/local \
43+
CXXFLAGS="" cmake-easyinstall --prefix=/usr/local \
4444
git+https://github.com/ccache/[email protected] \
4545
-DCMAKE_BUILD_TYPE=Release \
4646
-DENABLE_DOCUMENTATION=OFF \

0 commit comments

Comments
 (0)