From cd2a5438bc45033f17299c3b8be68ae4b4b62619 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sun, 5 Sep 2021 10:31:37 +0200 Subject: [PATCH] don't download PETSc if cache exists --- .github/workflows/Fortran.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Fortran.yml b/.github/workflows/Fortran.yml index 92de7a7cd..616d357e9 100644 --- a/.github/workflows/Fortran.yml +++ b/.github/workflows/Fortran.yml @@ -49,6 +49,7 @@ jobs: brew link gcc@${GCC_V} - name: Get PETSc + if: steps.${{ matrix.os }}-gcc${{ matrix.gcc_v }}-${{ hashFiles('**/petscversion.h') }}-6.outputs.cache-hit != 'true' run: | wget -q https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.15.4.tar.gz tar -xf petsc-3.15.4.tar.gz @@ -123,6 +124,7 @@ jobs: printenv >> $GITHUB_ENV - name: Get PETSc + if: steps.intel-${{ matrix.intel_v }}-${{ hashFiles('**/petscversion.h') }}-6.outputs.cache-hit != 'true' run: | wget -q https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.15.4.tar.gz tar -xf petsc-3.15.4.tar.gz @@ -134,7 +136,7 @@ jobs: uses: actions/cache@v2 with: path: petsc-3.15.4 - key: ${{ matrix.os }}-gcc${{ matrix.intel_v }}-${{ hashFiles('**/petscversion.h') }}-6 + key: intel-${{ matrix.intel_v }}-${{ hashFiles('**/petscversion.h') }}-6 - name: Install PETSc Intel (classic) if: contains( matrix.intel_v, 'classic')