-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 993 Bytes
/
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
name: Anaconda build
on: [push]
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
GIT_HASH: ${{ github.sha }}
GDX_VERSION: 0.11.8
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-2022"]
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: true
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
activate-environment: build
python-version: "3.10"
- name: create meta.yaml
run: python
- name: Setup conda forge
run: |
conda config --add channels conda-forge
conda config --set channel_priority strict
- name: Install build requirements
run: conda install mamba boa jinja2
- name: Generate package metadata
run: python ./conda/metagen.py
- name: Build conda package
run: conda mambabuild ./conda