👷 add model and package cache

This commit is contained in:
Félix Voituret
2020-07-08 15:50:12 +02:00
parent 5182795d36
commit 1fdcff31f8
2 changed files with 29 additions and 9 deletions

View File

@@ -14,6 +14,16 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache spleeter models
uses: actions/cache@v2
env:
cache-name: cache-spleeter-model
with:
path: pretrained_models
key: models-${{ hashFiles('spleeter/model/__init__.py') }}
restore-keys: |
models-${{ hashFiles('spleeter/model/__init__.py') }}
models-
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y ffmpeg