-
Notifications
You must be signed in to change notification settings - Fork 14
61 lines (48 loc) · 1.7 KB
/
conda_build_linux.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
name: Conda Build For Linux (Test build)
on:
pull_request:
branches:
- master
workflow_dispatch:
jobs:
BuildAndTest:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
# Specify python version your environment will have. Remember to quote this, or
# YAML will think you want python 3.1 not 3.10
python-version: "3.11"
# This uses *miniforge*, rather than *minicond*. The primary difference is that
# the defaults channel is not enabled at all
miniforge-version: latest
# These properties enable the use of mamba, which is much faster and far less error
# prone than conda while being completely compatible with the conda CLI
use-mamba: true
mamba-version: "*"
- name: Config Conda
working-directory: ${{github.workspace}}
shell: bash -l {0}
run: |
echo "Config Conda---------------------------------"
mamba install anaconda-client boa -c conda-forge
- name: start building
working-directory: ${{github.workspace}}
shell: bash -l {0}
run: |
echo "Building begin---------------------------------"
conda config --set anaconda_upload no
# these are infos used to check environ
mamba info -a
mamba list
mamba -h
echo "Get Output file names:_________________"
# OUTPUT_FN=$(conda build conda_build/conda_gen/ --output)
echo "Start building---------------------------------"
conda mambabuild conda_build/conda_gen/
env:
TOKEN: ${{ secrets.CONDA_UPLOAD_TOKEN }}