-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Cache for GitHub Actions (#2920)
* CI: Cache for GitHub Actions Use caches for `ccache` on GitHub actions. * CI: Clean Up Windows
- Loading branch information
Showing
12 changed files
with
133 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,18 @@ 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-nvcc-${{ hashFiles('.github/workflows/cuda.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} | ||
restore-keys: | | ||
ccache-cuda-nvcc-${{ hashFiles('.github/workflows/cuda.yml') }}- | ||
ccache-cuda-nvcc- | ||
- name: install openPMD-api | ||
run: | | ||
export CEI_SUDO="sudo" | ||
cmake-easyinstall --prefix=/usr/local \ | ||
git+https://github.com/openPMD/[email protected] \ | ||
|
@@ -96,6 +108,16 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- name: Dependencies | ||
run: .github/workflows/dependencies/nvhpc.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-nvhpc-${{ hashFiles('.github/workflows/cuda.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} | ||
restore-keys: | | ||
ccache-cuda-nvhpc-${{ hashFiles('.github/workflows/cuda.yml') }}- | ||
ccache-cuda-nvhpc- | ||
- name: Build & Install | ||
run: | | ||
source /etc/profile.d/modules.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters