-
Notifications
You must be signed in to change notification settings - Fork 11
77 lines (65 loc) · 1.95 KB
/
build_conda_windows.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: build_conda_windows
on:
push:
tags:
- '*'
branches:
- conda
workflow_dispatch:
concurrency:
group: build_conda_windows-${{ github.ref }}
cancel-in-progress: true
jobs:
build_conda_windows:
name: ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-2019]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
# refer to https://github.com/actions/checkout
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
activate-environment: kaldialign
- name: Display Python version
shell: bash -l {0}
run: |
python -c "import sys; print(sys.version)"
which python
- name: Install conda dependencies
shell: bash -l {0}
run: |
conda install -y -q anaconda-client
conda install -y -q conda-build
- name: Display conda info
shell: bash -l {0}
run: |
which conda
conda env list
conda info
which python
- name: Build kaldialign
shell: bash -l {0}
env:
KALDIALIGN_CONDA_TOKEN: ${{ secrets.KALDIALIGN_CONDA_TOKEN }}
run: |
./scripts/build_conda.sh
- name: Display generated files
shell: bash -l {0}
run: |
ls -lh /c/Miniconda/envs/kaldialign/conda-bld
ls -lh /c/Miniconda/envs/kaldialign/conda-bld/*/*
ls -lh /c/Miniconda/envs/kaldialign/conda-bld/win-64/*
- name: Upload generated files
uses: actions/upload-artifact@v2
with:
name: python-${{ matrix.python-version }}-windows-2019
path: c:/Miniconda/envs/kaldialign/conda-bld/win-64/*.tar.bz2