From 0059fd03154408263082c877314493072f0810a2 Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Tue, 23 Feb 2021 08:30:36 +0000 Subject: ci: specify the chocolately cache directory Signed-off-by: GitHub --- .github/workflows/ci.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af5f313..e152789 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,14 +57,22 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - uses: actions/cache@v2 with: - path: c:\Users\runneradmin\AppData\Local\Temp\chocolatey - # This caches the cache, no need to make sure that this is invalidated - # chocolatey will do that for us. - key: chocolatey-cache + path: ${{ github.workspace }}\.choco-cache + key: choco-cache-${{ runner.os }}-${{ hashFiles('.github/workflows/ci.yml') }} + restore-keys: | + choco-cache-${{ runner.os }}-${{ hashFiles('.github/workflows/ci.yml') }} + choco-cache-${{ runner.os }}- + - name: Install Prerequisites - run: choco install openssl + run: | + New-Item -ItemType Directory -Force -Path ${{ github.workspace }}\.choco-cache + choco config set configLocation ${{ github.workspace }}\.choco-cache + choco install --no-progress openssl + Get-ChildItem -Path ${{ github.workspace }}\.choco-cache + - name: Configure Build & Test shell: bash run: | -- cgit v1.2.1