-
Notifications
You must be signed in to change notification settings - Fork 2.9k
58 lines (58 loc) · 2.12 KB
/
conda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: conda
on:
- workflow_dispatch
jobs:
build-linux:
strategy:
matrix:
python: [3.7, 3.8]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
$CONDA/bin/conda install conda-build
$CONDA/bin/conda install anaconda-client
- name: Build package
run: |
$CONDA/bin/conda config --add channels anaconda
$CONDA/bin/conda config --add channels conda-forge
$CONDA/bin/conda build --python ${{ matrix.python }} conda/spleeter
- name: Push package
run: |
$CONDA/bin/anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
for package in /usr/share/miniconda/conda-bld/linux-64/spleeter*.bz2; do
$CONDA/bin/anaconda upload $package
done
build-windows:
strategy:
matrix:
python: [3.7]
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- 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\spleeter
- name: Push package
run: |
anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
$packages = Get-ChildItem "C:\Miniconda\conda-bld\win-64\"
foreach ($package in $packages){
anaconda upload $package.FullName
}