-
Notifications
You must be signed in to change notification settings - Fork 2
90 lines (79 loc) · 2.56 KB
/
conda-dev.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
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Deploy conda packages (wip)
on:
workflow_dispatch:
inputs:
wip:
description: 'Publish work in progress package.'
required: false
default: 'true'
jobs:
build:
name: deploy on ${{ matrix.os }} using python-${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-2019
python-version: ['3.8']
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: setup miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: build
- name: Install prerequisites
shell: pwsh
run: |
conda config --set anaconda_upload yes
conda install conda-build anaconda-client
- name: Install macos SDK
if: ${{ matrix.os == 'macos-latest' }}
shell: pwsh
run: |
Invoke-WebRequest -Uri 'https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.9.sdk.tar.xz' -OutFile 'MacOSX10.9.sdk.tar.xz'
sudo tar xf MacOSX10.9.sdk.tar.xz -C /opt
Invoke-WebRequest -Uri 'https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.3.sdk.tar.xz' -OutFile 'MacOSX11.3.sdk.tar.xz'
sudo tar xf MacOSX11.3.sdk.tar.xz -C /opt
- name: print info
shell: pwsh
run: |
conda info
conda list
- name: publish conda package (wip)
if: ${{ github.event.inputs.wip == 'true' }}
shell: pwsh
run: |
python .github/conda.py
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
- name: publish conda package (release)
if: ${{ github.event.inputs.wip == 'false' }}
shell: pwsh
run: |
python .github/conda.py --release
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
- name: publish conda package (wip; osx-64)
if: ${{ github.event.inputs.wip == 'true' && matrix.os == 'macos-latest' }}
shell: pwsh
run: |
python .github/conda.py
env:
CONDA_SUBDIR: osx-64
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
- name: publish conda package (release; osx-64)
if: ${{ github.event.inputs.wip == 'false' && matrix.os == 'macos-latest' }}
shell: pwsh
run: |
python .github/conda.py --release
env:
CONDA_SUBDIR: osx-64
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}