ci: cache chocolaty download

The bison sourceforge download is quite slow and unreliable.

Hopefully this works. Stolen directly from ruby:
a50750c8a9/.github/workflows/windows.yml (L26)

Signed-off-by: Ran Benita <ran@unusedvar.com>
master
Ran Benita 2020-07-22 12:02:44 +03:00
parent dcb6c7b8a4
commit d4a17915db
1 changed files with 7 additions and 0 deletions

View File

@ -68,6 +68,13 @@ jobs:
- uses: actions/setup-python@v1 - uses: actions/setup-python@v1
with: with:
python-version: '3.7' python-version: '3.7'
- uses: actions/cache@v2
with:
path: C:\Users\runneradmin\AppData\Local\Temp\chocolatey
key: ${{ runner.os }}-chocolatey-${{ matrix.os }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-chocolatey-${{ matrix.os }}-
${{ runner.os }}-chocolatey-
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip meson python -m pip install --upgrade pip meson