-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (53 loc) · 1.69 KB
/
build_and_upload_conda_packages.yaml
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
name: Build and upload conda packages
on:
release:
types: ['released', 'prereleased']
workflow_dispatch:
jobs:
conda_deployment_with_new_tag:
name: Conda deployment of package to platform with Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false # do not cancel all in-progress jobs if any job variation fails
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup conda env
uses: mamba-org/setup-micromamba@v1
with:
environment-file: devtools/conda-envs/build_env.yaml
environment-name: build
condarc: |
channels:
- uibcdf
- conda-forge
- defaults
channel_priority: strict
create-args: >-
python=${{ matrix.python-version }}
- name: Info conda
shell: bash -l {0}
run: |
micromamba activate build
micromamba info
micromamba list
- name: Build and upload the conda packages
uses: uibcdf/[email protected]
with:
meta_yaml_dir: devtools/conda-build
python-version: ${{ matrix.python-version }}
mambabuild: false
user: uibcdf
label: auto
platform_linux-64: true
platform_osx-64: true
platform_osx-arm64: true
platform_win-64: true
token: ${{ secrets.ANACONDA_UIBCDF_TOKEN }}