mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-31 14:58:23 +00:00
✨ add windows build, fix package detection
This commit is contained in:
31
.github/workflows/conda.yml
vendored
31
.github/workflows/conda.yml
vendored
@@ -7,7 +7,7 @@ env:
|
|||||||
ANACONDA_USERNAME: ${{ secrets.ANACONDA_USERNAME }}
|
ANACONDA_USERNAME: ${{ secrets.ANACONDA_USERNAME }}
|
||||||
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD }}
|
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD }}
|
||||||
jobs:
|
jobs:
|
||||||
package-and-deploy:
|
build-linux:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python: [3.7, 3.8]
|
python: [3.7, 3.8]
|
||||||
@@ -31,6 +31,31 @@ jobs:
|
|||||||
- name: Push package
|
- name: Push package
|
||||||
run: |
|
run: |
|
||||||
$CONDA/bin/anaconda login --username $ANACONDA_USERNAME --password $ANACONDA_PASSWORD
|
$CONDA/bin/anaconda login --username $ANACONDA_USERNAME --password $ANACONDA_PASSWORD
|
||||||
for package in /usr/share/miniconda/conda-bld/linux-64/*.bz2; do
|
for package in /usr/share/miniconda/conda-bld/linux-64/spleeter*.bz2; do
|
||||||
$CONDA/bin/anaconda upload $package
|
$CONDA/bin/anaconda upload $package
|
||||||
done
|
done
|
||||||
|
build-windows:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python: [3.7, 3.8]
|
||||||
|
package: [spleeter]
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Python 3.8
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.8
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
C:\Miniconda\condabin\conda.bat init powershell
|
||||||
|
C:\Miniconda\condabin\conda.bat install conda-build
|
||||||
|
C:\Miniconda\condabin\conda.bat install anaconda-client
|
||||||
|
- name: Build package
|
||||||
|
run: |
|
||||||
|
C:\Miniconda\condabin\conda.bat config --add channels anaconda
|
||||||
|
C:\Miniconda\condabin\conda.bat config --add channels conda-forge
|
||||||
|
C:\Miniconda\condabin\conda.bat build --python ${{ matrix.python }} conda/${{ matrix.package }}
|
||||||
|
- name: Push package
|
||||||
|
run: |
|
||||||
|
anaconda login --username $ANACONDA_USERNAME --password $ANACONDA_PASSWORD
|
||||||
@@ -12,6 +12,7 @@ source:
|
|||||||
build:
|
build:
|
||||||
number: 0
|
number: 0
|
||||||
script: {{ PYTHON }} -m pip install . -vv
|
script: {{ PYTHON }} -m pip install . -vv
|
||||||
|
skip: True # [osx]
|
||||||
entry_points:
|
entry_points:
|
||||||
- spleeter = spleeter.__main__:entrypoint
|
- spleeter = spleeter.__main__:entrypoint
|
||||||
|
|
||||||
@@ -21,7 +22,8 @@ requirements:
|
|||||||
- pip
|
- pip
|
||||||
run:
|
run:
|
||||||
- python {{ python }}
|
- python {{ python }}
|
||||||
- tensorflow ==2.3.0
|
- tensorflow ==2.3.0 # [linux]
|
||||||
|
- tensorflow ==2.1.0 # [win]
|
||||||
- pandas
|
- pandas
|
||||||
- ffmpeg-python
|
- ffmpeg-python
|
||||||
- norbert
|
- norbert
|
||||||
|
|||||||
Reference in New Issue
Block a user