diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 881f311de..c4c644358 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -22,7 +22,14 @@ jobs: domain: [blas, dft, lapack, rng] steps: - uses: actions/checkout@v4 + - name: Restore netlib from cache + id: cache-lapack + uses: actions/cache@v3 + with: + path: lapack/install + key: lapack-${{ env.LAPACK_VERSION }} - name: Install netlib + if: steps.cache-lapack.outputs.cache-hit != 'true' run: | curl -sL https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v${LAPACK_VERSION}.tar.gz | tar zx SHARED_OPT="lapack-${LAPACK_VERSION} -DBUILD_SHARED_LIBS=on -DCBLAS=on -DLAPACKE=on -DCMAKE_INSTALL_PREFIX=${PWD}/lapack/install"