-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (46 loc) · 1.56 KB
/
conda-build.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
name: Conda Build
on:
push:
branches:
- development # You can change this to the branch you want to trigger on
schedule:
# Every Monday at 17PM UTC (9AM EST)
- cron: "0 17 * * 1"
jobs:
build-linux:
name: CondaBuild (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.10"]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
channels: conda-forge,defaults
channel-priority: true
activate-environment: base
- name: Display Conda Settings
shell: bash -el {0}
run: |
conda info
conda list
conda config --show-sources
conda config --show
printenv | sort
- name: "Set SDK on MacOS (if needed)"
if: startsWith(matrix.os, 'macos')
run: tools/install_macos_sdk.sh
- name: Build Conda Package
shell: bash -el {0}
run: |
mamba install conda-build boa
cd conda-recipe
curl -sLO https://raw.githubusercontent.com/conda-forge/conda-forge-pinning-feedstock/084b098a28a7a66e9a0967d156bc55b9ebfc6726/recipe/conda_build_config.yaml
# curl -sLO https://github.com/conda-forge/conda-forge-pinning-feedstock/raw/main/recipe/conda_build_config.yaml
conda mambabuild .