-
Notifications
You must be signed in to change notification settings - Fork 4
85 lines (70 loc) · 2.04 KB
/
Copy pathbuild-conda-packages.yml
File metadata and controls
85 lines (70 loc) · 2.04 KB
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
78
79
80
81
82
83
84
85
name: Build Conda Packages
on:
push:
branches:
- '**'
pull_request:
env:
GH_HEAD_REF: ${{ github.head_ref }}
jobs:
build-conda-packages:
strategy:
fail-fast: false
matrix:
arch: ['x64']
os: [windows-2022, ubuntu-22.04, macos-13]
python: ['3.9', '3.10', '3.11', '3.12']
exclude:
- arch: x86
os: macos-latest
- arch: x86
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
- uses: actions/checkout@v5
with:
submodules: recursive
fetch-depth: 2
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
activate-environment: tigl-conda
miniconda-version: 'latest'
architecture: ${{ matrix.arch }}
python-version: ${{ matrix.python }}
channels: dlr-sc,dlr-sc/label/tigl-dev
- name: Install requirements (ubuntu, macos)
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
shell: bash -l {0}
run: |
conda install -y conda-build gitpython anaconda-client mesa-dri-drivers-cos6-x86_64
conda info -a
conda list
echo $PATH
- name: Install requirements (windows)
if: contains(matrix.os, 'windows')
shell: cmd /C call {0}
run: |
conda install -y conda-build gitpython anaconda-client
conda info -a
conda list
- name: build conda packages
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
shell: bash -l {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
python --version
python build_recipes.py
- name: build conda packages
if: contains(matrix.os, 'windows')
shell: cmd /C call {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
python --version
python build_recipes.py