aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ubuntu.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ubuntu.yml')
-rw-r--r--.github/workflows/ubuntu.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index a0ebf8bc6..2be792f3c 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -18,6 +18,16 @@ jobs:
- name: install dependencies
run: |
.github/workflows/dependencies/gcc.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-openmp-cxxminimal-${{ hashFiles('.github/workflows/ubuntu.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }}
+ restore-keys: |
+ ccache-openmp-cxxminimal-${{ hashFiles('.github/workflows/ubuntu.yml') }}-
+ ccache-openmp-cxxminimal-
- name: build WarpX
run: |
cmake -S . -B build_3D \
@@ -47,6 +57,16 @@ jobs:
run: |
.github/workflows/dependencies/gcc.sh
sudo apt-get install -y libopenmpi-dev openmpi-bin
+ - 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-openmp-gccablastr-${{ hashFiles('.github/workflows/ubuntu.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }}
+ restore-keys: |
+ ccache-openmp-gccablastr-${{ hashFiles('.github/workflows/ubuntu.yml') }}-
+ ccache-openmp-gccablastr-
- name: build WarpX
run: |
cmake -S . -B build \