mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-30 12:22:58 +00:00
👷 add model and package cache
This commit is contained in:
28
.github/workflows/pypi.yml
vendored
28
.github/workflows/pypi.yml
vendored
@@ -9,19 +9,29 @@ env:
|
||||
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
|
||||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
|
||||
jobs:
|
||||
deploy-cpu:
|
||||
package-and-deploy:
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [cpu, gpu]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Package sdist
|
||||
- name: Cache sdist packages
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-sdist-packages
|
||||
with:
|
||||
path: dist
|
||||
key: sdist-${{ matrix.platform }}-${{ hashFiles('setup.py') }}
|
||||
restore-keys: |
|
||||
sdist-${{ matrix.platform }}-${{ hashFiles('setup.py') }}
|
||||
sdist-${{ matrix.platform }}
|
||||
sdist-
|
||||
- if: ${{ matrix.platform }} == 'cpu'
|
||||
name: Package CPU distribution
|
||||
run: make build
|
||||
- name: Deploy to pypi
|
||||
run: make deploy
|
||||
deploy-gpu:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Package sdist
|
||||
- if: ${{ matrix.platform }} == 'gpu'
|
||||
name: Package GPU distribution
|
||||
run: make build-gpu
|
||||
- name: Deploy to pypi
|
||||
run: make deploy
|
||||
10
.github/workflows/pytest.yml
vendored
10
.github/workflows/pytest.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user