-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c5ff27
commit 74c4013
Showing
1 changed file
with
17 additions
and
9 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 |
---|---|---|
|
@@ -162,15 +162,6 @@ jobs: | |
printenv | ||
- name: Cache Dependencies | ||
# There seems to be a problem with cached NVHPC dependencies, leading to SIGILL perhaps due to slightly different architectures | ||
if: matrix.caching | ||
id: deps-cache | ||
uses: pat-s/[email protected] | ||
with: | ||
path: ${{ env.DEPS_DIR }} | ||
key: deps-${{ matrix.os }}-${{ matrix.compiler }}-v1 | ||
|
||
- name: Free Disk Space (Ubuntu) | ||
# Free up disk space for nvhpc | ||
uses: jlumbroso/free-disk-space@main | ||
|
@@ -190,6 +181,14 @@ jobs: | |
docker-images: true | ||
swap-storage: true | ||
|
||
- name: Retrieve cached dependencies | ||
if: matrix.caching | ||
id: deps-restore-cache | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: ${{ env.DEPS_DIR }} | ||
key: deps-${{ matrix.os }}-${{ matrix.compiler }}-v1 | ||
|
||
- name: Install NVHPC compiler | ||
if: contains( matrix.compiler, 'nvhpc' ) | ||
shell: bash -eux {0} | ||
|
@@ -238,6 +237,15 @@ jobs: | |
run: | | ||
brew install eigen | ||
- name: Save cached dependencies | ||
# There seems to be a problem with cached NVHPC dependencies, leading to SIGILL perhaps due to slightly different architectures | ||
if: matrix.caching && matrix.build_type == 'Debug' | ||
id: deps-save-cache | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: ${{ env.DEPS_DIR }} | ||
key: ${{ steps.deps-restore-cache.outputs.cache-primary-key }} | ||
|
||
- name: Set Build & Test Environment | ||
run: | | ||
|